- Right-click into working copy's directory or on desktop if there is no project directory yet
- Select
Git Bash
from the context menu heroku login
- Type your username and hit
Enter
- Type your password and hit
Enter
This must only be done once in order to set up Heroku on a new computer.
cd ~/.ssh
ssh-keygen -t rsa -C "<YOUR_EMAIL_ADDRESS>"
- For the location just press
Enter
which will createid_rsa
(private key) andid_rsa.pub
(public key) heroku keys:add
- When asked for the index of the key to choose, enter the number that is shown for
id_rsa.pub
- Create a new app in Heroku's web interface
cd ~/Desktop
git clone git@heroku.com:<APPNAME>.git -o heroku
- You have now cloned into the repository
<APPNAME>
which has caused a folder named<APPNAME>
to be created in your current directory cd <APPNAME>
- You are now in the local folder for your project
git remote add heroku git@heroku.com:<APPNAME>.git
- Add some files to the local folder
git add .
git commit -m 'initial commit'
git push heroku master
If you want to get a new working copy of your app on your computer, you just have to clone into the repository again.
git clone git@heroku.com:<APPNAME>.git -o heroku
cd <APPNAME>
You don't need to sign in to heroku via heroku login
when you want to publish changes to your app. Normal Git usage is sufficient when the repository has been set up already.
git commit -m '<DESCRIPTION_OF_CHANGES>'
git push heroku master
heroku info