forked from coop-cloud/outline
Add a mode to entrypoint to allow just loading env
This commit is contained in:
parent
8796269ad2
commit
5e2a13a93a
2
abra.sh
2
abra.sh
|
@ -1,4 +1,4 @@
|
||||||
export APP_ENTRYPOINT_VERSION=v7
|
export APP_ENTRYPOINT_VERSION=v8
|
||||||
export DB_ENTRYPOINT_VERSION=v2
|
export DB_ENTRYPOINT_VERSION=v2
|
||||||
|
|
||||||
create_email_user() {
|
create_email_user() {
|
||||||
|
|
|
@ -19,5 +19,7 @@ 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
|
if [ ! "$1" = "-e" ]; then
|
||||||
/usr/local/bin/yarn start "$@"
|
/usr/local/bin/yarn db:migrate --env=production-ssl-disabled
|
||||||
|
/usr/local/bin/yarn start "$@"
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue