-
Add it to your Heroku config:
$ heroku config:add BUILDPACK_URL=https://github.com/joelcogen/heroku-buildpack-rails-unicorn-nginx
-
Require unicorn in your
Gemfile
:group :production do gem "unicorn" end
-
Deploy!
You can change the number of Unicorn threads (defaults to 3) by setting the WEB_CONCURRENCY
environment variable:
$ heroku config:set WEB_CONCURRENCY=5
See the documentation for the dependencies below for other options to set. Anything you used with the default Ruby buildpack still works.
Uses
Based on ddollar/heroku-buildpack-multi