diff --git a/config/environments/production.rb b/config/environments/production.rb index dc8e25593aee7654481a849844c3052ed0e6c041..183b7ae5b70924086d76ccdfe0927a2654d322c9 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -52,7 +52,7 @@ Gitlab::Application.configure do # config.action_mailer.raise_delivery_errors = false # Enable threaded mode - # config.threadsafe! + config.threadsafe! # Enable locale fallbacks for I18n (makes lookups for any locale fall back to # the I18n.default_locale when a translation can not be found) diff --git a/config/initializers/2_app.rb b/config/initializers/2_app.rb index 27a0c0ffeb2cdd4a603e54f28a97f563c7059bd5..e2f98002347b03246473322d827398b659b06b74 100644 --- a/config/initializers/2_app.rb +++ b/config/initializers/2_app.rb @@ -6,3 +6,8 @@ module Gitlab Settings end end + +# +# Load all libs for threadsafety +# +Dir["#{Rails.root}/lib/**/*.rb"].each { |file| require file }