mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	Bugfix: Production autoload issue for bot.rb
- add app/bot to auto load path
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user