I've recently updated our Gemfile as pry-byebug
and bye-bug
were causing Rubymine to crash for some of my colleagues. Since there are some of us that use other editors I've added an environment variable to our Gemfile:
if ENV["USE_DEBUGGER"]
gem "pry-byebug"
gem "byebug"
end
This worked fine in our local machines but deploying to Heroku causes the following error: gist
I've tried running bundle install
and committing a new Gemfile.lock
but that changes nothing. Getting rid of the control flow declaration or simply removing the gems fixes the issue.It's worth nothing that in that same commit I bumped the required ruby version to 2.2.0
Is there any way to use conditional statements in the Gemfile
without blowing Heroku up?