-
Install the heroku CLI
brew tap heroku/brew && brew install heroku
-
Login with your heroku credentials
heroku login
-
Create your application
heroku apps:create --buildpack heroku/python
-
Add redis add-on for celery worker
heroku addons:create heroku-redis -a your_app_name
-
Add PostgreSQL add-on for database
heroku addons:create heroku-postgresql
-
Verify
REDIS
andDATABASE
existheroku addons
-
Run the line below for each desired variable (except
DATABASE_URL
andREDIS_URL
) in configuration guideheroku config:set VARIABLE_NAME=variable_value
-
Push the code to heroku
git push heroku master
-
Start the celery worker on a dyno
heroku ps:scale worker=1
-
Open the application
heroku open