Commit 5511a731bcc05034abacd4ec01ff7d5a2a3b89d3

Authored by Dmitriy Zaporozhets
1 parent 159eee8d

Enable threadsafe. Preload lib/

config/environments/production.rb
... ... @@ -52,7 +52,7 @@ Gitlab::Application.configure do
52 52 # config.action_mailer.raise_delivery_errors = false
53 53  
54 54 # Enable threaded mode
55   - # config.threadsafe!
  55 + config.threadsafe!
56 56  
57 57 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58 58 # the I18n.default_locale when a translation can not be found)
... ...
config/initializers/2_app.rb
... ... @@ -6,3 +6,8 @@ module Gitlab
6 6 Settings
7 7 end
8 8 end
  9 +
  10 +#
  11 +# Load all libs for threadsafety
  12 +#
  13 +Dir["#{Rails.root}/lib/**/*.rb"].each { |file| require file }
... ...