Updated: 2019-01-07

Deploy A New App

Step 1: Create a new app in Heroku Dashboard.

Step 2: Create a Procfile in your app folder, add this line to the file(illustrated as a node app)

web: node app

Step 3: Git as usual

$ git init
$ git remote add heroku [email protected]:<app-name>.git
$ git add .
$ git commit -m "init commit"
$ git push heroku master

Note: if you skip the Procfile you might see the error message in heroku logs

at=error code=H14 desc="No web processes running

And if you call $ heroku ps:scale web=1 it may return:

!    Resource not found

Change User

Each Heroku account can only create 5 apps; to change to another account, use

$ heroku login