Skip to content
Roey Darwish Dror edited this page Sep 5, 2017 · 1 revision
  1. Create an account on Heroku
  2. Install the Heroku toolbelt
  3. Follow the quickstart instructions. On step #4, read the Python introduction
  4. Create an app, e.g. anyway-you
  5. Sign up for a free Heroku Postgres add-on (note that you'll have to enter your credit card details to be eligible): heroku addons:add heroku-postgresql:hobby-dev
  6. Push from your Git repository to Heroku
  7. Populate the database with the data (assuming you have it in your local directory):
    1. Copy the database URL from your Heroku config: heroku config:get DATABASE_URL (if you have several apps, specify the relevant one with the option --app <anyway-*you*> for any Heroku command)
    2. Create tables: python models.py
    3. Populate data: python process.py
  8. Navigate to http://anyway-*you*.herokuapp.com