Skip to content

Commit

Permalink
Merge pull request #1178 from hennevogel/bugfix/prod-env
Browse files Browse the repository at this point in the history
Some fixes for the production environment
  • Loading branch information
hennevogel committed Mar 30, 2022
2 parents 96cfbc2 + 8356766 commit d9fa5af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/environments/production.rb
Expand Up @@ -49,7 +49,7 @@
config.log_tags = [ :request_id ]

# Use a different cache store in production.
memcached_host = ENV["MEMCACHE_SERVERS"] || "localhost:11211"
memcached_host = ENV["MEMCACHED_HOST"] || "localhost:11211"
config.cache_store = :mem_cache_store, memcached_host, {namespace: 'software', compress: true}

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
Expand All @@ -61,6 +61,12 @@

# Use lograge as logger
config.lograge.enabled = true
config.lograge.custom_options = lambda do |event|
exceptions = ['controller', 'action', 'format', 'id']
{
params: event.payload[:params].except(*exceptions)
}
end

if ENV["RAILS_LOG_TO_STDOUT"].present?
logger = ActiveSupport::Logger.new(STDOUT)
Expand Down

0 comments on commit d9fa5af

Please sign in to comment.