Created
September 15, 2021 16:25
-
-
Save jagthedrummer/44e816a0196b9a687db540b9e98b0531 to your computer and use it in GitHub Desktop.
Bundler runtime modifications of Gemfile.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Point at our Gemfile | |
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) | |
# load rubygems & bundler | |
require "rubygems" | |
require 'bundler/setup' # Sometimes this line triggers modifications to Gemfile.lock | |
# Set up gems listed in the Gemfile. | |
Bundler.require(:default, :production) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Point at our Gemfile | |
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) | |
# Prevent bundler from trying to update Gemfile.lock | |
ENV['BUNDLE_FROZEN'] = 'true' | |
# load rubygems & bundler | |
require "rubygems" | |
require 'bundler/setup' # With BUNDLE_FROZEN set this line won't cause problems | |
# Set up gems listed in the Gemfile. | |
Bundler.require(:default, :production) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment