1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Load bundler groups for the current environment. Closes middleman/middleman-livereload#101

This commit is contained in:
Thomas Reynolds 2018-10-15 11:13:19 -07:00
parent 41b907f3bc
commit a0b1406c0b

View file

@ -34,7 +34,10 @@ module Middleman
raise "Couldn't find your Gemfile. Middleman projects require a Gemfile for specifying dependencies." unless File.exist?(ENV['BUNDLE_GEMFILE'])
require 'bundler/setup'
Bundler.require
Bundler.require(
:default,
(ENV['MM_ENV'] || ENV['RACK_ENV'] || 'development').to_sym
)
end
# Recursive method to find a file in parent directories