Looking for heroku Answers? Try Ask4KnowledgeBase
Looking for heroku Keywords? Try Ask4Keywords

herokuHeroku node.js Hello World


Remarks

login

heroku login

create app

heroku create or heroku create your_name

clone the example

git clone https://github.com/zoutepopcorn/herokuworld
cd herokuworld

visit app in your browser

https://your_name.herokuapp.com/

Optional test it local:

heroku local web

check: lolhost:5000

So whats different to a normal node.js app? package.json

"scripts": {
  "start": "node index.js"
},
"engines": {
  "node": "7.6.0"
}

index.js

process.env.PORT

Local port: 5000. Heroku will map it to port 80 on your app url.