mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 20:56:09 +08:00
Reload lib in development mode only
This commit is contained in:
parent
b78958fbfc
commit
39cfffce2d
@ -63,6 +63,10 @@ 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?
|
||||||
|
config.autoload_paths += Dir["#{config.root}/lib"]
|
||||||
|
end
|
||||||
|
|
||||||
# Only load the plugins named here, in the order given (default is alphabetical).
|
# Only load the plugins named here, in the order given (default is alphabetical).
|
||||||
# :all can be used as a placeholder for all plugins not explicitly named.
|
# :all can be used as a placeholder for all plugins not explicitly named.
|
||||||
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user