-
Notifications
You must be signed in to change notification settings - Fork 243
Heroku deployment
Roey Darwish Dror edited this page Sep 5, 2017
·
1 revision
- Create an account on Heroku
- Install the Heroku toolbelt
- Follow the quickstart instructions. On step #4, read the Python introduction
- Create an app, e.g. anyway-you
- 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
- Push from your Git repository to Heroku
- Populate the database with the data (assuming you have it in your local directory):
- 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) - Create tables:
python models.py
- Populate data:
python process.py
- Copy the database URL from your Heroku config:
- Navigate to http://anyway-*you*.herokuapp.com