Heroku is a popular Platform-as-a-Service provider (PaaS) which makes it easy for developers to deploy web applications without an operations team. Heroku has been around since 2007, and is now owned by Salesforce.
This section provides an overview of what Heroku is, and why a developer might want to use it.
It should also mention any large subjects within Heroku, and link out to the related topics. Since the Documentation for Heroku is new, you may need to create initial versions of those related topics.
A pipeline is a group of Heroku apps that share the same codebase. Apps in a pipeline are grouped into “review”, “development”, “staging”, and “production” stages representing different deployment steps in a continuous delivery workflow.
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.