Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.05 KB

deployment.md

File metadata and controls

63 lines (42 loc) · 1.05 KB

Deployment to Heroku

  1. Install the heroku CLI

    brew tap heroku/brew && brew install heroku
  2. Login with your heroku credentials

    heroku login
  3. Create your application

    heroku apps:create --buildpack heroku/python
  4. Add redis add-on for celery worker

    heroku addons:create heroku-redis -a your_app_name
  5. Add PostgreSQL add-on for database

    heroku addons:create heroku-postgresql
  6. Verify REDIS and DATABASE exist

    heroku addons

    Addons

  7. Run the line below for each desired variable (except DATABASE_URL and REDIS_URL) in configuration guide

    heroku config:set VARIABLE_NAME=variable_value
  8. Push the code to heroku

    git push heroku master
  9. Start the celery worker on a dyno

    heroku ps:scale worker=1
  10. Open the application

    heroku open