make .app_is_ready flag a bit later

This commit is contained in:
Andrew Dolgov 2021-03-07 12:26:13 +03:00
parent 2c8e9591f5
commit d6e307c98b
1 changed files with 2 additions and 2 deletions

View File

@ -94,10 +94,10 @@ fi
cd $DST_DIR && sudo -E -u app php8 ./update.php --update-schema=force-yes cd $DST_DIR && sudo -E -u app php8 ./update.php --update-schema=force-yes
touch $DST_DIR/.app_is_ready
rm -f /tmp/error.log && mkfifo /tmp/error.log && chown app:app /tmp/error.log rm -f /tmp/error.log && mkfifo /tmp/error.log && chown app:app /tmp/error.log
(tail -q -f /tmp/error.log >> /proc/1/fd/2) & (tail -q -f /tmp/error.log >> /proc/1/fd/2) &
touch $DST_DIR/.app_is_ready
exec /usr/sbin/php-fpm8 --nodaemonize --force-stderr exec /usr/sbin/php-fpm8 --nodaemonize --force-stderr