Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.36 KB

deployment.md

File metadata and controls

35 lines (21 loc) · 1.36 KB

Deploying outside a development environment

Production is on maxwell.emfcamp.org. Staging (https://www.emfcamp-test.org) is on kelvin.emfcamp.org.

First install

This is done after each event, following a clear of the database:

docker compose -f ./docker-compose.environment.yml up -d
docker compose -f ./docker-compose.environment.yml exec app poetry run flask db upgrade
docker compose -f ./docker-compose.environment.yml exec app poetry run flask create_perms
docker compose -f ./docker-compose.environment.yml exec app poetry run flask cfp create_venues
docker compose -f ./docker-compose.environment.yml exec app poetry run flask tickets create

Deployments

Deployments run automatically when a new container is built by Github Actions and pushed to Github Container Registry. This is done using Watchtower.

If there are any DB migrations which need to be applied, you still need to manually run:

docker compose -f /root/Website/docker-compose.prod.yml exec app poetry run flask db upgrade

or, if the app won't start:

docker compose -f /root/Website/docker-compose.prod.yml run --rm --entrypoint=poetry app run flask db upgrade

Admin Commands

Admin commands can be listed with:

docker-compose -f /root/Website/docker-compose.prod.yml exec app poetry run flask