Skip to content

Getting set up on Heroku

mjumbewu edited this page May 11, 2012 · 4 revisions

This all assumes you have the Heroku command-line client installed. Refer to the documentation for more information.

Clone the repository

$ git clone git://github.com/openplans/streetscore.git
$ cd streetscore

Create a new Heroku application

$ heroku apps:create <appname> --stack cedar
$ heroku addons:add shared-database:5mb

Initialize the application

$ git push heroku master
$ heroku run "street_score/manage.py syncdb --all"

Alternativey, if you have a city-specific branch to use, push that up instead. For example:

$ git checkout -t remotes/origin/denver
$ git push heroku denver:master
$ heroku run "street_score/manage.py syncdb --all"

Take note of the URL that Heroku provides after running git push. The URL will be near the bottom of the output, and look something like:

...
-----> Launching... done, v4
       http://<appurl> deployed to Heroku

To git@heroku.com:<appname>.git
 * [new branch]      denver -> master

Using this URL, follow the directions for Configuring the Application . Note that continuing requires a superuser account, which you would create during the syncdb step. If you didn't specify any credentials, then at some point before moving on, you will have to run:

$ heroku run "street_score/manage.py createsuperuser"