Getting Thin Gem to Work on Heroku When you Develop in Windows
Upgrading to Heroku’s Cedar stack, I had to install the Thin gem to prevent my app from running on Web Brick. On the Bamboo stack this is injected so I need not worry, but with Cedar you need to install all the gems you need.
The problem is that I work on Windows in development and that one of the dependencies for the Thin gem is the Eventmachine gem. However, Eventmachine isn’t really geared towards Windows environments (except gem install eventmachine –pre), so everytime went to run bundle install the install would fail because the dependency, eventmachine 0.12.10 could not install.
However, Heroku helped me find a solution.
Add this to the gemfile
group :production do
and instead of ‘bundle install’, run ‘bundle install –without production’