File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ def build
55
55
@log . info "starting hooks server v#{ Hooks ::VERSION } "
56
56
@log . info "config: #{ endpoints . size } endpoints loaded"
57
57
@log . info "environment: #{ config [ :environment ] } "
58
+ @log . info "production mode: #{ config [ :production ] } "
58
59
@log . info "available endpoints: #{ endpoints . map { |e | e [ :path ] } . join ( ', ' ) } "
59
60
60
61
# Build and return Grape API class
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def self.load(config_path: nil)
69
69
# Convert string keys to symbols for consistency
70
70
config = symbolize_keys ( config )
71
71
72
- if config [ :environment ] == "production"
72
+ if config [ :environment ] . downcase == "production"
73
73
config [ :production ] = true
74
74
else
75
75
config [ :production ] = false
You can’t perform that action at this time.
0 commit comments