From 77c7321441d48289d9b6a978d043fb68e4aa68f2 Mon Sep 17 00:00:00 2001 From: Gideon Goldberg <1764158+gidsg@users.noreply.github.com> Date: Tue, 21 May 2024 17:14:19 +0100 Subject: [PATCH] run migrations on startup of data-store --- Procfile | 2 +- docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Procfile b/Procfile index c5b15cf..62a81ef 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn wsgi:app -c run/gunicorn/run.py --workers=3 +web: gunicorn wsgi:app -c run/gunicorn/run.py --workers=1 diff --git a/docker-compose.yml b/docker-compose.yml index 1eaeedb..7d75e51 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,8 @@ services: environment: - FLASK_ENV=development - DATABASE_URL=postgresql://postgres:password@database:5432/postgres + entrypoint: launcher + command: flask db upgrade && gunicorn wsgi:app -c run/gunicorn/run.py --workers=1 depends_on: - database - localstack