John Wulff <johnwu...@gmail.com> wrote:
> I'm running unicorn and unicorn-rails 0.96.1 and the latest Rails 3
> beta gem.  Firing up unicorn_rails spews "RAILS_ENV not defined by
> config/boot".  I know this is likely a result of RAILS_ROOT being
> deprecated in Rails 3 but I can't seem to config my way around it.
> I'm sure other people must have run into this before.  Is there a
> quick fix?

Hi John,

I haven't had a chance to look at Rails 3 yet, but you can probably try
just using a plain config.ru with "unicorn" (not "unicorn_rails")

------------------- config.ru ------------------
ENV["RAILS_ENV"] ||= ENV["RACK_ENV"]
require "config/environment"
use Rails::Rack::Static
run ActionController::Dispatcher.new
------------------------------------------------

Let us know how it goes, thanks!

-- 
Eric Wong
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to