We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebe6fdd commit 09ddfe7Copy full SHA for 09ddfe7
lib/warbler/templates/rack.erb
@@ -1,3 +1,5 @@
1
-ENV['RACK_ENV'] ||= '<%= (params = config.webxml.context_params; params['rack.env']) %>'
+<% if params = config.webxml.context_params && params['rack.env'] -%>
2
+ENV['RACK_ENV'] ||= '<%= params['rack.env'] %>'
3
+<% end -%>
4
5
$LOAD_PATH.unshift $servlet_context.getRealPath('/WEB-INF') if $servlet_context
0 commit comments