From d266f4da075b4b972ee97589ac58ce1d08022f84 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 18 May 2010 14:07:54 -0700 Subject: doc: FAQ: clarify Rails support --- FAQ | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'FAQ') diff --git a/FAQ b/FAQ index c9b334d..ffe03a6 100644 --- a/FAQ +++ b/FAQ @@ -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" -- cgit v1.2.3-24-ge0c7