Skip to content

How to set up Heroku and Github access

Maxim Zaslavsky edited this page Mar 14, 2014 · 3 revisions

Initial setup

Add your ssh keys to Github and Heroku, then run:

git clone [email protected]:newice.git -o heroku

Next, run:

git remote set-url origin [email protected]:maximz/newice.git

Workflow

Pull latest

git pull (pulls from Github)

Push latest

  • git push or git push origin master (pushes to Github)
  • git push heroku master (pushes to Heroku and deploys)

Update project timeline

The timeline lives in a separate publicly-visible repository. Navigate to http://github.com/nicetigers/timeline, then click index.html and the Edit button to edit it.

The live URL is: http://nicetigers.github.io/timeline/

(Note that this is a Git repository, so you can clone it and edit index.html locally, then push it back up to Github. Make sure to edit on the gh-pages branch!)

See or change web dyno status

After installing the Heroku toolkit, run:

  • heroku ps:scale web=1 (sets it to 1 dyno, which is what we want)
  • heroku ps (to see status)
  • heroku open to view in browser

How to sync database with Heroku (and view logs, etc.)

See https://devcenter.heroku.com/articles/getting-started-with-django#syncing-the-database

This is the guide I followed to set up the blank Django app.