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:
parent
41b907f3bc
commit
a0b1406c0b
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue