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
unicornexecutable is a Rack-only tool modeled after Rack's "rackup" and is recommended for Rack applications.unicorn_railswas made to be an easier transition for users of pre-Rack versions of Rails. The manpage encourages Rails 3 users to use plainunicorninstead.What's the difference?
From the
unicorn_railsmanpage, some conventions ofunicorn_railsare modeled afterscript/serverfound in Rails. It creates directories under "tmp" likescript/serverand the -E/–environment switch setsRAILS_ENVinstead ofRACK_ENV. -
Greg Hurrell
To ease the Rails 3 upgrade process, would be nice if I could switch to
unicornfromunicorn_railsin my existing Rails 2.3.5 application. I wonder whether copyingvendor/rails/railties/dispatches/config.ruinto 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.