-
Setup virtualenv
-
Setup PostgreSQL
Set the
DATABASE_URL
environment variable to point to your PostgreSQL server:export DATABASE_URL=postgres://foo:foo@localhost/helloheroku
Create the database schema:
python manage.py createDbSchema
-
Start Flask Server
python web.py
-
Test out the app
-
Create the app
heroku create -s cedar
-
Add the Heroku Shared Database Add-on
heroku addons:add shared-database
-
Deploy the app
git push heroku master
-
Create the database schema
heroku run "python manage.py createDbSchema"
-
Open the app in your browser
heroku open
-
Verify that it works
-
Switch the app to
PROD
modeheroku config:add PROD=True