diff options
Diffstat (limited to 'FAQ')
-rw-r--r-- | FAQ | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -62,13 +62,19 @@ to ensure redirects go to "https://" URLs. === Is there a "rainbows_rails" command like there is "unicorn_rails"? -Only if you write one and plan to support it. +No. "unicorn_rails" was written primarily to support older versions of -Rails. Since \Rainbows! is designed for newer Rails, it can just use -a "config.ru" file like other Rack frameworks and applications. +Rails. Since \Rainbows! is designed for newer applications based on +Rack, it can just use a "config.ru" file like other Rack frameworks and +applications. -For Rails 2.3.x and later, the following config.ru will work for you: +For Rails 3.x, you should already have a config.ru file and +"rainbows(1)" will work out-of-the-box like "rackup(1)". Rails 3 +will support RACK_ENV as set by "rainbows(1)", so you won't need +to set RAILS_ENV. + +For Rails 2.3.x, the following config.ru will work for you: ENV["RAILS_ENV"] ||= ENV["RACK_ENV"] require "config/environment" |