Commit 4c0b1953 authored by Holger Just's avatar Holger Just

[#819] set RAILS_ENV if only RACK_ENV is provided

parent 939fd0b9
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
# you don't control web/app server and can't set it the proper way # you don't control web/app server and can't set it the proper way
# ENV['RAILS_ENV'] ||= 'production' # ENV['RAILS_ENV'] ||= 'production'
# use RACK_ENV if we are running as a simple rack app
ENV['RAILS_ENV'] ||= ENV['RACK_ENV'] if ENV['RACK_ENV']
# Specifies gem version of Rails to use when vendor/rails is not present # Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment