1
0
Fork 0
mirror of https://git.tt-rss.org/fox/ttrss-docker-compose synced 2025-07-11 10:49:52 +02:00

add a hack to send fpm children logs to docker-captured stderr

This commit is contained in:
Andrew Dolgov 2021-03-07 10:38:32 +03:00
parent 547f3caa7a
commit 34cc2916d0
2 changed files with 12 additions and 5 deletions

View file

@ -86,7 +86,10 @@ fi
cd $DST_DIR && sudo -E -u app php8 ./update.php --update-schema=force-yes
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) &
touch $DST_DIR/.app_is_ready
sudo -E -u app /usr/sbin/php-fpm8 -F
exec /usr/sbin/php-fpm8 --nodaemonize --force-stderr