Skip to content

Instantly share code, notes, and snippets.

@jagthedrummer
Created September 15, 2021 16:25
Show Gist options
  • Save jagthedrummer/44e816a0196b9a687db540b9e98b0531 to your computer and use it in GitHub Desktop.
Save jagthedrummer/44e816a0196b9a687db540b9e98b0531 to your computer and use it in GitHub Desktop.
Bundler runtime modifications of Gemfile.lock
# 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)
# 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