From 84f264e64e8972ecb0e54788148d3f7057defaf2 Mon Sep 17 00:00:00 2001 From: Edouard DAUBIN Date: Wed, 6 Dec 2023 19:21:22 +0100 Subject: [PATCH 1/4] Update compile Update compile, in order to build a custom servers.conf.erb file installed in the project directory. --- bin/compile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/compile b/bin/compile index cb112a2f..558ca97c 100755 --- a/bin/compile +++ b/bin/compile @@ -483,6 +483,11 @@ if [ -f "/app/vendor/php/etc/conf.d/newrelic.ini" ] ; then fi fi +if [ -f "/app/conf/nginx.conf.erb" ] ; then + export HAS_SERVER_CONF=true + erb /app/conf/servers.conf.erb > /app/conf/servers.conf +fi + erb conf/nginx.conf.erb > /app/vendor/nginx/conf/nginx.conf erb conf/site.conf.erb > /app/vendor/nginx/conf/site.conf From f7c596302eb01c8ec762490b50f6a20c2828ee69 Mon Sep 17 00:00:00 2001 From: Edouard DAUBIN Date: Tue, 18 Jun 2024 20:02:55 +0200 Subject: [PATCH 2/4] Update composer --- lib/composer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/composer b/lib/composer index e97a9419..9cc7ead7 100644 --- a/lib/composer +++ b/lib/composer @@ -163,7 +163,7 @@ function is_embedded_extension() { [ ${rc} -ne 0 ] && \ error "error while trying to identify if ${extension_name} is embedded in runtime: ${php_modules} (${rc})." - if echo "${php_modules}" | grep --quiet --ignore-case "${extension_name}" ; then + if echo "${php_modules}" | grep --quiet --extended-regexp --ignore-case "^${extension_name}$" ; then echo "true" else echo "false" From eb7349220828ac3d94a16493a7c589a22817815f Mon Sep 17 00:00:00 2001 From: Edouard DAUBIN Date: Mon, 13 Jan 2025 21:41:18 +0100 Subject: [PATCH 3/4] Update php-fpm.conf --- conf/php/php-fpm.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/php/php-fpm.conf b/conf/php/php-fpm.conf index 2f223b24..ae48db58 100644 --- a/conf/php/php-fpm.conf +++ b/conf/php/php-fpm.conf @@ -196,7 +196,7 @@ pm = dynamic ; forget to tweak pm.* to fit your needs. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' ; Note: This value is mandatory. -pm.max_children = ${WEB_CONCURRENCY} +pm.max_children = 3 ; The number of child processes created on startup. ; Note: Used only when pm is set to 'dynamic' From 10f896fe1106f59e87e40227a635cee909310146 Mon Sep 17 00:00:00 2001 From: Edouard DAUBIN Date: Mon, 13 Jan 2025 21:47:52 +0100 Subject: [PATCH 4/4] Update php-fpm.conf --- conf/php/php-fpm.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/php/php-fpm.conf b/conf/php/php-fpm.conf index ae48db58..2f223b24 100644 --- a/conf/php/php-fpm.conf +++ b/conf/php/php-fpm.conf @@ -196,7 +196,7 @@ pm = dynamic ; forget to tweak pm.* to fit your needs. ; Note: Used when pm is set to 'static', 'dynamic' or 'ondemand' ; Note: This value is mandatory. -pm.max_children = 3 +pm.max_children = ${WEB_CONCURRENCY} ; The number of child processes created on startup. ; Note: Used only when pm is set to 'dynamic'