Run Local
-
Clone repo
-
Create and activate virtual environment
$ python3 -m venv .venv
$ source .venv/bin/activate
- Install requirements
$ pip install -r requirements.txt
- Add environment variable
$ export SERVER_SECRET={secret}
- Run
$ python3 -m server.main
Deploy to Heroku
-
Clone repo
-
Create a new Heroku app.
-
Add a Heroku Postgres database.
-
Add these environment variables to heroku
SERVER_SECRET={secret}
NAMESPACE="heroku"
- Push to heroku
$ heroku login
$ heroku git:remote -a {app-name}
$ git push heroku master
- Initialize database
$ heroku run init
Heroku logs
$ heroku logs --tail