If you haven't already log in to your Heroku account
- run
heroku login
in the terminal and follow instructions
Initialize a git repository in a new or existing directory
Run
cd my-project/
git init
heroku git:remote -a name-of-the-project
Simply add the heroku remote
Run
heroku git:remote -a name-of-the-project-or-app
Commit your code to the repository and deploy it to Heroku using Git.
Run
git add .
git commit -am "make first commit"
git push heroku master
If you are pushing from a branch - not master
Run
git add .
git commit -am "make first commit"
git push heroku <branch_name>:master
Run
heroku config:set USERNAME=username_here
heroku config:set PASSWORD=password_here