Skip to content

Commit

Permalink
Bugfix: Production autoload issue for bot.rb
Browse files Browse the repository at this point in the history
- add app/bot to auto load path
  • Loading branch information
sojan-official committed Jan 9, 2020
1 parent 9c2f37d commit 6c00766
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/application.rb
Expand Up @@ -16,6 +16,10 @@ class Application < Rails::Application
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
Expand Down

0 comments on commit 6c00766

Please sign in to comment.