Bugfix: Production autoload issue for bot.rb
- add app/bot to auto load path
This commit is contained in:
parent
9c2f37d0f9
commit
6c0076665a
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ module Chatwoot
|
|||
config.autoload_paths << Rails.root.join('lib')
|
||||
config.eager_load_paths << Rails.root.join('lib')
|
||||
|
||||
# This is required in production for zeitwerk to autoload the file
|
||||
config.paths.add File.join('app', 'bot'), glob: File.join('**', '*.rb')
|
||||
config.autoload_paths << Rails.root.join('app/bot')
|
||||
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
# Application configuration can go into files in config/initializers
|
||||
# -- all .rb files in that directory are automatically loaded after loading
|
||||
|
|
Loading…
Reference in a new issue