调整自动更新 无需重启rails s 服务

This commit is contained in:
kingChan 2024-05-30 17:33:09 +08:00
parent ff1e85cad5
commit 9c84856f99
1 changed files with 2 additions and 2 deletions

View File

@ -62,8 +62,8 @@ Rails.application.configure do
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
config.file_watcher = ActiveSupport::FileUpdateChecker
config.reload_classes_only_on_change = false
config.action_controller.perform_caching = true
config.action_mailer.delivery_method = :smtp