Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

    
    
Source by devcenter.heroku.com #
 
PREVIOUS NEXT
Tagged: #Deploying #Apps #Heroku
ADD COMMENT
Topic
Name
5+9 =