Skip to content

Commit

Permalink
New configuration to enable debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tungleduyxyz committed May 21, 2024
1 parent 4ed30ef commit 726e6cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
config.eager_load = true

# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false
# rubocop:disable Lint/Env
config.consider_all_requests_local = defined?(JRUBY_VERSION) ? (java.lang.System.getProperty('kaui.enable_debug_mode', ENV['ENABLE_DEBUG_MODE']) == 'true') : (ENV.fetch('ENABLE_DEBUG_MODE') == 'true')
# rubocop:enable Lint/Env
config.action_controller.perform_caching = true

# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
Expand Down

0 comments on commit 726e6cf

Please sign in to comment.