diff options
Diffstat (limited to '.docker/app/startup.sh')
-rw-r--r-- | .docker/app/startup.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.docker/app/startup.sh b/.docker/app/startup.sh index 5c57db6..a6b4016 100644 --- a/.docker/app/startup.sh +++ b/.docker/app/startup.sh @@ -62,6 +62,12 @@ xdebug.client_host = ${EPUBE_XDEBUG_HOST} EOF fi +sed -i.bak "s/^\(memory_limit\) = \(.*\)/\1 = ${PHP_WORKER_MEMORY_LIMIT}/" \ + /etc/php8/php.ini + +sed -i.bak "s/^\(pm.max_children\) = \(.*\)/\1 = ${PHP_WORKER_MAX_CHILDREN}/" \ + /etc/php8/php-fpm.d/www.conf + sudo -Eu app php8 $DST_DIR/update.php --update-schema=force-yes rm -f /tmp/error.log && mkfifo /tmp/error.log && chown app:app /tmp/error.log |