mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Sidekiq wouldn't start up in development mode
This commit is contained in:
parent
f99c00a0ef
commit
954d753d5d
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ module Discourse
|
||||||
config.autoload_paths += Dir["#{config.root}/lib/validators/"]
|
config.autoload_paths += Dir["#{config.root}/lib/validators/"]
|
||||||
config.autoload_paths += Dir["#{config.root}/app"]
|
config.autoload_paths += Dir["#{config.root}/app"]
|
||||||
|
|
||||||
if Rails.env.development?
|
if Rails.env.development? && !Sidekiq.server?
|
||||||
config.autoload_paths += Dir["#{config.root}/lib"]
|
config.autoload_paths += Dir["#{config.root}/lib"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue