heroku create code example

Example 1: heroku git remote

heroku git:remote -a name-of-app

Example 2: deploy to heroku

$ git add .
$ git commit -m "Added a Procfile."
$ heroku login
Enter your Heroku credentials.
...
$ heroku create <app-name>
Creating arcane-lowlands-8408... done, stack is cedar
// now create procfile
//
//node app.js
// 
$ git push heroku master
-----> Node.js app detected
...
-----> Launching... done
       http://arcane-lowlands-8408.herokuapp.com deployed to Heroku

Example 3: push heroku

$ git push heroku master

Example 4: heroku and github on termi

$ heroku git:remote -a thawing-inlet-61413
set git remote heroku to https://git.heroku.com/thawing-inlet-61413.git

Example 5: heroku create with name

heroku create name-of-app

Example 6: heroku create app

heroku create <app_name_you_want_it_to_be>
# Make sure you have heroku CLI installed and have added it to PATH.

Tags:

Misc Example