feat: better healthcheck and prevent useless composer install calls
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{$CADDY_GLOBAL_OPTIONS}
|
||||
}
|
||||
|
||||
{$SERVER_NAME:localhost}
|
||||
{$SERVER_NAME:localhost}
|
||||
|
||||
{$CADDY_EXTRA_CONFIG}
|
||||
|
||||
@@ -19,10 +19,6 @@ log {
|
||||
}
|
||||
|
||||
route {
|
||||
# Healthcheck URL
|
||||
respond /healthz 200
|
||||
skip_log /healthz
|
||||
|
||||
root * /srv/app/public
|
||||
mercure {
|
||||
# Transport to use (default to Bolt)
|
||||
|
||||
@@ -27,7 +27,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$APP_ENV" != 'prod' ]; then
|
||||
if [ ! -d 'vendor/' ]; then
|
||||
composer install --prefer-dist --no-progress --no-interaction
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user