0
0

More than 3 years have passed since last update.

win10 Hoem docker rails ローカルファイルの更新 反映されない

Last updated at Posted at 2021-07-13

コードの修正後の反映設定

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

これだけで動作も更新もできたのでとりあえずこれで作業してみる

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0