1

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?

MegaTux
  • 1,591
  • 21
  • 26

2 Answers2

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.

Community
  • 1
  • 1
vich
  • 11,836
  • 13
  • 49
  • 66
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