Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Deployment

Gus edited this page Apr 9, 2018 · 2 revisions

Deploying to Heroku

  1. Login with your heroku credentials
heroku login
  1. Create your application
heroku apps:create --buildpack heroku/python
  1. Add redis add-on for celery worker
heroku addons:create heroku-redis -a your_app_name
  1. Add PostgreSQL add-on for database
heroku addons:create heroku-postgresql
  1. Verify REDIS and DATABASE exist
heroku addons

Addons

  1. Configure your environment variables
# NOTE: for heroku, you do not need to set the `DATABASE_URL` or `REDIS_URL`
# environment variables, since they are set automatically with the addons
heroku config:set ADMIN_EMAIL=email@email.com
heroku config:set ADMIN_PASSWORD=some_password
heroku config:set GITHUB_API_TOKEN=your_github_api_token
heroku config:set GITHUB_ORG_LOGIN=the_name_of_your_organization
heroku config:set TRELLO_ORG_NAME=your_trello_organization_name
heroku config:set TRELLO_API_KEY=your_trello_public_key
heroku config:set TRELLO_API_TOKEN=a_trello_token_you_generate
  1. Push the code to heroku
git push heroku master
  1. Start the celery worker on a dyno
heroku ps:scale worker=1
  1. Open the application
heroku open

Clone this wiki locally