-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
--on-change-only / -C seemingly does nothing #1742
--on-change-only / -C seemingly does nothing #1742
Comments
Yep, confirmed. Some regression somewhere... |
Found the root cause of the issue. Also it was not caught by the tests because the test was never actually executed under test/monitor/run.test.js. |
I tought that it is a bug on ubuntu 20.04, I tried run forever and pm2 too, but both doesn't restart server after edit files. |
Moved run.kill outside the run function Moved up restart bind, before runCmd so that we can use it in run.kill If command is not to be run the we just need to watch files and not fork/spawn a child process Binding options with instance of run, so that we can use it in run.kill (https://travis-ci.org/github/remy/nodemon/builds/714612398) Updated run options inside if condition (https://travis-ci.org/github/remy/nodemon/builds/714620936)
This issue has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and @remy will (try!) to follow up. |
Commenting to reopen the issue |
nodemon -v
: 2.0.4node -v
: v12.17.0nodemon -C some-script.js
Expected behaviour
some-script.js not being executed on startup. Please correct me if this is a misunderstanding on my part!
Actual behaviour
some-script.js is executed on startup.
Steps to reproduce
nodemon
.nodemon -C script-name-here.js
.Details
The text was updated successfully, but these errors were encountered: