diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-05-18 14:07:54 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-05-18 14:07:54 -0700 |
commit | d266f4da075b4b972ee97589ac58ce1d08022f84 (patch) | |
tree | d6f071d702e7972b863c8676576e16555ef08581 /FAQ | |
parent | 48313f442f53dfdb4ba24bbb12fc91f5c47a24ec (diff) | |
download | rainbows-d266f4da075b4b972ee97589ac58ce1d08022f84.tar.gz |
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" |