mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:03:43 +08:00
DEV: Make the dev watcher ignore node_modules (#29263)
This commit is contained in:
parent
c1f078cacf
commit
7f15fdb611
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user