command = <%= details[:command] %>
home_directory = <%= details[:home_directory] %>
path = <%= details[:path] || "/bin:/usr/bin" %>
+<% if details[:environment] -%>
+ environment = <%= details[:environment].map { |k,v| "#{k}=#{v}" }.join(":") %>
+<% end -%>
return_fail_output
<% else -%>
driver = appendfile
:user => "rails",
:group => "rails",
:home_directory => "/srv/www.openstreetmap.org/rails",
- :path => "/bin:/usr/bin:/usr/local/bin"
+ :path => "/bin:/usr/bin:/usr/local/bin",
+ :environment => {
+ "RAILS_ENV" => "production"
+ }
}
}
}