From b40beb0c6133a220384ec97ab5c542461ce45d34 Mon Sep 17 00:00:00 2001 From: dil07 Date: Wed, 21 Feb 2024 15:45:18 -0500 Subject: [PATCH] =?UTF-8?q?use=20node[=E2=80=9Cenvironment=E2=80=9D]=20dir?= =?UTF-8?q?ectly=20instead=20of=20trying=20to=20read=20from=20$ENV=20for?= =?UTF-8?q?=20fpm=20www.conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configure/templates/default/www.conf.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure/templates/default/www.conf.erb b/configure/templates/default/www.conf.erb index 064a0157..140c7d14 100644 --- a/configure/templates/default/www.conf.erb +++ b/configure/templates/default/www.conf.erb @@ -374,7 +374,7 @@ chdir = / ;env[TMP] = /tmp ;env[TMPDIR] = /tmp ;env[TEMP] = /tmp -env[ENV] = $ENV +env[ENV] = <%= (node["environment"]) %> env[DD_ENV] = <%= (node["environment"].include?("prod") ? "production" : node["environment"]) %> env[DD_PROFILING_ENABLED] = <%= (node[:datadog][:enable_profiling] || 0) && "true" || "false" %> env[DD_TRACE_ENABLED] = <%= (node[:datadog][:enable_trace_agent] || 0) && "true" || "false" %>