Answers for "Deploying Node.js Apps on Heroku"

0

Deploying Node.js Apps on Heroku

1- Specify the version of node on package.json
	"engines": {
    "node": "14.x"
  },
npm install
heroku local web
	Your app should now be running on http://localhost:5000/. 

echo "/node_modules

npm-debug.log

.DS_Store

/*.env" >  .gitignore

*/
git add .
git commit -m "Added a Procfile."
heroku login
heroku create
git push heroku main
Posted by: Guest on July-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language