Comments
-
Greg Hurrell
From http://www.engineyard.com/blog/2010/everything-you-need-to-know-about-unicorn/:
What is the unicorn executable? What is the unicorn_rails executable?
The
unicorn
executable is a Rack-only tool modeled after Rack's "rackup" and is recommended for Rack applications.unicorn_rails
was made to be an easier transition for users of pre-Rack versions of Rails. The manpage encourages Rails 3 users to use plainunicorn
instead.What's the difference?
From the
unicorn_rails
manpage, some conventions ofunicorn_rails
are modeled afterscript/server
found in Rails. It creates directories under "tmp" likescript/server
and the -E/–environment switch setsRAILS_ENV
instead ofRACK_ENV
. -
Greg Hurrell
To ease the Rails 3 upgrade process, would be nice if I could switch to
unicorn
fromunicorn_rails
in my existing Rails 2.3.5 application. I wonder whether copyingvendor/rails/railties/dispatches/config.ru
into the app root will be enough. It contains:# Rack Dispatcher # Require your environment file to bootstrap Rails require File.dirname(__FILE__) + '/config/environment' # Dispatch the request run ActionController::Dispatcher.new
-
Greg Hurrell
Status changed:
- From: new
- To: closed
Add a comment
Comments are now closed for this issue.