Skip to content

Commit

Permalink
Maintenance: Add env variable to change file watcher for developments.
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfschmidt committed Sep 30, 2022
1 parent e0d051e commit c26d5f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@

# 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 = if ENV['DEVELOPMENT_FILE_WATCHER'] == 'file_update_checker'
ActiveSupport::FileUpdateChecker
else
ActiveSupport::EventedFileUpdateChecker
end

# Asset digests allow you to set far-future HTTP expiration dates on all assets,
# yet still be able to expire them through the digest params.
Expand Down

0 comments on commit c26d5f1

Please sign in to comment.