Looking at the logs, my cedar app currently runs webrick. Obviously, this is not the best choice for production app.
As noted all over the web, I should use Thin webserver.
But I would still like to use the simplicty of webrick on my development machine (windows).
As noted in the comments on Heroku cedar stack, thin and eventmachine the version that can be installed on windows for eventmachine (I also need some explanation on that gem) is 1.0.0.beta4 and heroku doesn’t like that..
-
How do I install thin (and eventmachine I guess) only on heroku and keep webrick for all my localhost needs?
-
What is eventmachine and why do I need it?
-
Is there a way to explicitly tell heroku to ignore what I want and use thin?
In your
Gemfile, create or change theproductiongroup to includethin:Then, in your Procfile (a file named
Procfileplaced in the root of your app), tell Heroku you want to usethin, like so:That will allow you to keep using Webrick in your local development environment while running
thinin production on Heroku.