Skip to content

Instantly share code, notes, and snippets.

@claraj
Last active March 14, 2018 01:09
Show Gist options
  • Save claraj/0b31683de9df4f558fcf303e191dd2fb to your computer and use it in GitHub Desktop.
Save claraj/0b31683de9df4f558fcf303e191dd2fb to your computer and use it in GitHub Desktop.
Heroku on lab PC

Open a Windows command prompt

Type

heroku login

Enter username and password

Type

heroku auth:token

Copy the auth token printed

Open git bash shell

Navigate to project directory e.g.

cd /c/users/STARID/yourprojectdirectory

Make sure project is a git repository, you have Procfile, have .gitignore set up...

Create heroku app

heroku apps:create

Push code to Heroku

git push heroku master

You'll get a pop up asking you to log in

  • Leave username blank
  • Paste in the heroku auth token copied earlier for the password

Click ok

Code should be pushed to Heroku

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment