I am doing a deploy in heroku to be able to enter the route graphiql
since it did not show me the playground in production. What I did locally was downgrade the gem
gem 'graphiql-rails', '1.7.0', group: [:development, :production]
agem 'graphiql-rails', '~> 1.4.11', group: [:development, :production]
But then while I do the deploy (which works fine with version 1.7.0) it fails showing the following error:
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
If this is a development machine, remove the /tmp/build_e0d9a471_/Gemfile freeze
by running `bundle install --no-deployment`.
The dependencies in your gemfile changed
You have added to the Gemfile:
* graphiql-rails (~> 1.4.11)
You have deleted from the Gemfile:
* graphiql-rails (= 1.7.0)
Bundler Output: You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
If this is a development machine, remove the /tmp/build_e0d9a471_/Gemfile freeze
by running `bundle install --no-deployment`.
The dependencies in your gemfile changed
You have added to the Gemfile:
* graphiql-rails (~> 1.4.11)
You have deleted from the Gemfile:
* graphiql-rails (= 1.7.0)
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app.
! Push failed
When I check the gemfile locally, as well as the .lock, they are on par in the version installation, but apparently in production the same thing does not happen.
Hello, after crying for many minutes, I discovered an answer there and the following should be done: