We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 382840a commit 39c6a20Copy full SHA for 39c6a20
2 files changed
lib/hooks/core/builder.rb
@@ -55,6 +55,7 @@ def build
55
@log.info "starting hooks server v#{Hooks::VERSION}"
56
@log.info "config: #{endpoints.size} endpoints loaded"
57
@log.info "environment: #{config[:environment]}"
58
+ @log.info "production mode: #{config[:production]}"
59
@log.info "available endpoints: #{endpoints.map { |e| e[:path] }.join(', ')}"
60
61
# Build and return Grape API class
lib/hooks/core/config_loader.rb
@@ -69,7 +69,7 @@ def self.load(config_path: nil)
69
# Convert string keys to symbols for consistency
70
config = symbolize_keys(config)
71
72
- if config[:environment] == "production"
+ if config[:environment].downcase == "production"
73
config[:production] = true
74
else
75
config[:production] = false
0 commit comments