bin/middleman in middleman-cli-4.1.8 vs bin/middleman in middleman-cli-4.1.9
- old
+ new
@@ -7,10 +7,13 @@
# Middleman::Profiling.start
require "middleman-core/load_paths"
Middleman.setup_load_paths
+require 'dotenv'
+::Dotenv.load
+
require 'middleman-core'
require 'middleman-core/logger'
module Middleman::Cli
class << self
@@ -44,9 +47,11 @@
ARGV.unshift('server')
end
::Middleman::Logger.singleton(3)
::Middleman::Cli.config = ::Middleman::Application.new do
+ #
+ config[:environment] = (ENV['MM_ENV'] || ENV['RACK_ENV'] || 'development').to_sym
config[:mode] = :config
config[:exit_before_ready] = true
config[:watcher_disable] = true
config[:disable_sitemap] = true
end.config