Skip to content

Commit

Permalink
use node[“environment”] directly instead of trying to read from $ENV …
Browse files Browse the repository at this point in the history
…for fpm www.conf
  • Loading branch information
dil07 authored and xp-bar committed Jul 3, 2024
1 parent eb0fe50 commit b40beb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure/templates/default/www.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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" %>
Expand Down

0 comments on commit b40beb0

Please sign in to comment.