Deploy with heroku code example

Example 1: git push to heroku

$ git push heroku master

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: set git remote heroku to https://git.heroku.com/resume-projects.git

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

Example 4: how to deploy heroku app

I assume you know how to use git.
I also assume you've ran the heroku create command for the app.

First commit the app if you haven't, then run this command:
git push heroku master

If there's an error, then try to fix it.

After that access the website by running this command:
heroku open

And run this command if you encounter an error with the website:
heroku logs --tail

Example 5: deploy react js heroku

npm install -g create-react-app
create-react-app my-app
cd my-app
git init
heroku create -b https://github.com/mars/create-react-app-buildpack.git
git add .
git commit -m "react-create-app on Heroku"
git push heroku master
heroku open

Example 6: deploying to heroku from git

$ git push heroku master
Initializing repository, done.
updating 'refs/heads/master'
...