コードの修正後の反映設定
config/environments/development.rb
config.file_watcher = ActiveSupport::FileUpdateChecker
config.file_watcher部分を上記に変更
何かしらの理由で上記のファイルを変更できない場合
Git管理をしているとローカルのみで管理対象外にしてもPullやcheckoutができないのでどうにかしたかった
initializersに下記のファイルを追加して管理対象外にしてみた。
config/initializers/dev.rb
require "active_support/core_ext/integer/time"
Rails.application.configure do
config.file_watcher = ActiveSupport::FileUpdateChecker
end
これだけで動作も更新もできたのでとりあえずこれで作業してみる