So…what is the difference between unicorn and unicorn_rails
When should I use one or another?
So…what is the difference between unicorn and unicorn_rails When should I use one or
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is officially answered in https://blog.engineyard.com/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/–environmentswitch setsRAILS_ENVinstead ofRACK_ENV.Apart from that, in my experience, some gems may need unicorn_rails in particular, like activeadmin (see this)
Also, manpage: