generated from coop-cloud/example
fix: always migrate before start #11
2
abra.sh
2
abra.sh
@ -1,4 +1,4 @@
|
|||||||
export APP_ENTRYPOINT_VERSION=v5
|
export APP_ENTRYPOINT_VERSION=v6
|
||||||
|
|
||||||
migrate() {
|
migrate() {
|
||||||
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
|
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
|
||||||
|
@ -15,4 +15,5 @@ export SECRET_KEY=$(cat /run/secrets/secret_key)
|
|||||||
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
|
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
|
||||||
export DATABASE_URL="postgres://outline:${DATABASE_PASSWORD}@${STACK_NAME}_db:5432/outline"
|
export DATABASE_URL="postgres://outline:${DATABASE_PASSWORD}@${STACK_NAME}_db:5432/outline"
|
||||||
|
|
||||||
|
/usr/local/bin/yarn db:migrate --env=production-ssl-disabled
|
||||||
/usr/local/bin/yarn start "$@"
|
/usr/local/bin/yarn start "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user