middleman-cli 4.1.8 → 4.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0e494f9628c56dc42043b48017edaf5f7f7c948
4
- data.tar.gz: fd3f3cddcdac1180b8ff9ae328b2717d2e835944
3
+ metadata.gz: 228af0f3a528e9f1b53d8c276f1e230e35d4518b
4
+ data.tar.gz: 34deca6f838123c20447fec4bc8ec38355d1d305
5
5
  SHA512:
6
- metadata.gz: 037dd46d8276f7a3db40acf08247ed3a8561a51c5b2b4ee501f56925b6f7c7b15cd130e16fd5d1fcf88ca45c982c798969efa65e14dfab62f3dfc4238d824688
7
- data.tar.gz: a721987f7688c463652f67b12e00db91cc37af40e8c07fc28c89eddca03e3c7b03ee3b88fd5b9ceedc2b200a2cb3da4bc4988e2647021ef1b29f873ba767cb01
6
+ metadata.gz: 083a19cf1b2400e6a865088b4468ea0e33a0f04f7135047555e24120628a508b4a859419aba76aa453e177b0786e1dbab1bfaccc2a71401f1c2f899db9a44602
7
+ data.tar.gz: 7b6ba67e97935078d400bbe6ff987bd0551bd2c5d98e8f6b90181ee2e7e10d84930e0abfa2ae52dd9e6b0a8e482434bc476f0b26646e71c49266afb240674f19
@@ -9,6 +9,9 @@ end
9
9
  require "middleman-core/load_paths"
10
10
  Middleman.setup_load_paths
11
11
 
12
+ require 'dotenv'
13
+ ::Dotenv.load
14
+
12
15
  require 'middleman-core'
13
16
  require 'middleman-core/logger'
14
17
 
@@ -46,6 +49,8 @@ end
46
49
 
47
50
  ::Middleman::Logger.singleton(3)
48
51
  ::Middleman::Cli.config = ::Middleman::Application.new do
52
+ #
53
+ config[:environment] = (ENV['MM_ENV'] || ENV['RACK_ENV'] || 'development').to_sym
49
54
  config[:mode] = :config
50
55
  config[:exit_before_ready] = true
51
56
  config[:watcher_disable] = true
@@ -10,7 +10,7 @@ module Middleman::Cli
10
10
 
11
11
  class_option :environment,
12
12
  aliases: '-e',
13
- default: :production
13
+ default: ENV['MM_ENV'] || ENV['RACK_ENV'] || :production
14
14
  class_option :clean,
15
15
  type: :boolean,
16
16
  default: true,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.8
4
+ version: 4.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-11 00:00:00.000000000 Z
12
+ date: 2016-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor