I'm a bit confused. When adding Unicorn to my Rails app in Heroku, should I keep the Thin server in the Gemfile or should I remove it?
Asked
Active
Viewed 152 times
2 Answers
2
You could keep Thin
to use locally (I believe the default is WEBrick), otherwise you could remove it and try running Unicorn locally instead.
-
I will keep thin on development group. Thanks – MegaTux May 19 '14 at 14:50
2
Thin and Unicorn are two different concurrent web servers. So once you made your choice you most likely don't want to keep both and instead stick to only one for both development and production environments.
As stated in Heroku unicorn documentation: https://devcenter.heroku.com/articles/rails-unicorn
Puma, Thin or Rainbows! are alternative web servers that may work better under load generated by slow clients. To change the web server running your app on Heroku, simply specify a different command for the web process type in your Procfile.
Additional informations about both: Thin vs Unicorn on Heroku

Community
- 1
- 1

Adrien Schuler
- 2,395
- 1
- 21
- 32