From 1fa42ec82d90cebe4108a2a3435708ab2847027e Mon Sep 17 00:00:00 2001 From: "Mr. Mendez" <56850299+JustMrMendez@users.noreply.github.com> Date: Wed, 18 Sep 2024 08:59:02 -0400 Subject: [PATCH] FIXES: #3322 deploy DB alterations before updating FIXES: #3322 [Bug]: logto stop working after pulling latest image #3322 --- templates/compose/logto.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose/logto.yaml b/templates/compose/logto.yaml index 8ba47fcf0..d806760ad 100644 --- a/templates/compose/logto.yaml +++ b/templates/compose/logto.yaml @@ -9,7 +9,7 @@ services: depends_on: postgres: condition: service_healthy - entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"] + entrypoint: ["sh", "-c", "npm run alteration deploy latest && npm run cli db seed -- --swe && npm start'"] environment: - TRUST_PROXY_HEADER=1 - DB_URL=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-logto}