FIXES: #3322 deploy DB alterations before updating

FIXES: #3322 

[Bug]: logto stop working after pulling latest image #3322
This commit is contained in:
Mr. Mendez
2024-09-18 08:59:02 -04:00
committed by GitHub
parent e42c7e258c
commit 1fa42ec82d

View File

@@ -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}