fix(deploy): preserve rollback diagnostics
This commit is contained in:
@@ -28,15 +28,16 @@ compose_profiles=""
|
||||
if [ "$cache_backend" = "valkey" ] || [ "$cache_backend" = "redis" ]; then
|
||||
compose_profiles="--profile cache"
|
||||
fi
|
||||
postgres_scale=""
|
||||
if [ "$(env_value POSTGRES_HOST postgres)" != "postgres" ]; then
|
||||
postgres_scale="--scale postgres=0"
|
||||
fi
|
||||
compose() {
|
||||
# shellcheck disable=SC2086
|
||||
docker compose $compose_profiles "$@"
|
||||
}
|
||||
compose_up() {
|
||||
postgres_scale=""
|
||||
if [ "$(env_value POSTGRES_HOST postgres)" != "postgres" ] \
|
||||
&& compose config --services | grep -Fxq postgres; then
|
||||
postgres_scale="--scale postgres=0"
|
||||
fi
|
||||
# shellcheck disable=SC2086
|
||||
compose up -d --remove-orphans $postgres_scale
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user