DEV: Make the dev watcher ignore node_modules (#29263)

This commit is contained in:
Jarek Radosz 2024-10-17 23:34:10 +02:00 committed by GitHub
parent c1f078cacf
commit 7f15fdb611
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ if Rails.env.development? && !Rails.configuration.cache_classes && Discourse.run
end
Listen
.to(*paths, only: /\.rb$/) do |modified, added, removed|
.to(*paths, only: /\.rb$/, ignore: [/node_modules/]) do |modified, added, removed|
supervisor_pid = UNICORN_DEV_SUPERVISOR_PID
auto_restart = supervisor_pid && ENV["AUTO_RESTART"] != "0"