- Copy
env-sample.sh
toenv.sh
and update the variables to reflect postgres user and database name. - Install python libraries
pip3 install -r requirements.txt
- Run
bash dev/init.sh
bash dev/run.sh
to run the web app
...
bash dev/run_batch.sh
to run the batch data relay worker
Examples:
bash dev/db.sh
bash dev/db.sh < commands.sql
bash dev/db.sh pg_dump > dump.sql
The Procfile
defines the processes that will run on Heroku.
git push <heroku-remote> master
See https://devcenter.heroku.com/articles/git
Once you have access to the heroku app,
heroku pg:psql -a hs-relay-prod
For now, schema updates must be done manually. Depending on the schema changes, you might want to set the heroku app into maintenance mode and turn off the batch worker while migrating.
heroku logs -a hs-relay-prod
Hub SSH functionality is now handled by the tunnel server