Skip to content

Commit

Permalink
Merge pull request #160 from engineyard/php_env_var_fix
Browse files Browse the repository at this point in the history
[FB-873] fixes php environmental variables [ZD-160560]
  • Loading branch information
jfuechsl authored Feb 17, 2020
2 parents 6efa3bc + c0397d1 commit 4ab326e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cookbooks/env_vars/templates/default/env.cloud.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<% @environment_variables.reject{|varname| varname[:name] =~ /^EY_/}.each do |variable| %>
<% if node['dna']['applications'].first[1]['type'] == "php" then %>
env[<%= variable[:name] %>]="<%= escape_variable_value(variable[:value]) %>"
<% else %>
export <%= variable[:name] %>="<%= escape_variable_value(variable[:value]) %>"
<% end %>
<% end %>

0 comments on commit 4ab326e

Please sign in to comment.