I added a section for development in my Gemfile
group :development do
gem 'thin'
end
and then ran bundle install
on my local machine. This created a Gemfile.lock
which contained thin. I checked in this file into the repo and pushed to Heroku. Normally I use unicorn
server in production. But when this version of the Gemfile was pushed to Heroku, the app crashed saying command thin not found
.
I don't understand why a gem included only in development group will affect my production deployment. What is the right way to include a gem only in development but without affecting Heroku production deployment?