Deploy: upgrade chill bundles and adapt skeleton

This commit is contained in:
2022-12-24 15:40:18 +01:00
parent ba33c507e6
commit 412cc332bb
16 changed files with 5486 additions and 7130 deletions

View File

@@ -6,13 +6,13 @@ set -e
# waiting for the database to be ready
if [ -z "${DATABASE_HOST}" ]; then
while ! timeout 1 bash -c "cat < /dev/null > /dev/tcp/${DATABASE_HOST}/${DATABASE_PORT}"
do
echo "$(date) : waiting one second for database";
sleep 1;
do
echo "$(date) : waiting one second for database";
sleep 1;
done
echo "$(date) : the database is ready";
else
else
echo "we assume the database is ready";
fi
@@ -38,7 +38,6 @@ if [ "${APP_ENV}" = "prod" ]; then
chmod +r /var/www/app/.env.local.php
fi
if [ "${CLEAR_CACHE}" != "false" ]; then
#prepare cache
php /var/www/app/bin/console cache:clear --no-warmup
@@ -46,5 +45,11 @@ if [ "${CLEAR_CACHE}" != "false" ]; then
chgrp ${PHP_FPM_GROUP} /var/www/app/var/log -R && chmod g+rw /var/www/app/var/log -R
fi
if [ "${PREVENT_MIGRATIONS}" != "true" ]; then
php /var/www/app/bin/console doctrine:migrations:status
php /var/www/app/bin/console doctrine:migrations:migrate -n
php /var/www/app/bin/console messenger:setup-transports
fi
exec "${@}"