-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restart via 'rs', even without changes to watched files #1159
Comments
I'm pretty sluggish when it comes to working with Docker, so do you think you could pull together a simple script that you can run instead of nodemon that will echo out the stdin that you're intending to inject? That way we can rule out that node isn't the problem. nodemon reads stdin like this:
|
I'm not 100% sure you want to pipe to stdin, but with [email protected] you can send a |
Thank you. Works perfect! |
nodemon -v
: 1.12.5node -v
: v8.9.1Nodemon runs inside a docker container.
There are unwatched file extensions that another process creates. When all the files are completely written, i want to send a manual signal through a pipe. However, this has no effect, since the restart is not executed because no changes are detected.
A restart should be a restart no matter if there are any changes.
With or without "--on-change-only" makes no difference.
entrypoint.sh:$pipeNodemon & pid=$ !
mkfifo $pipeNodemon
nodemon --legacy-watch --on-change-only --verbose <
// At some point later
echo -e "rs\r\n" > $pipeNodemon
Config
{
"ext": "json hbs trigger",
"delay": "300",
"watch": [
"dist"
],
"exec": "node --inspect=0.0.0.0:9229 ./dist/server.js",
"ignore": [
"src/**/*.spec.ts"
]
}
Expected behaviour
A real restart.
Actual behaviour
A change detection without a restart.
backend-api_1 | [TSC] 13:48:52 - File change detected. Starting incremental compilation...
backend-api_1 | [TSC] 13:48:52 - Compilation complete. Watching for file changes.
backend-api_1 | [TSC] 13:48:52 - Trigger nodemon // this is the: echo -e "rs\r\n" > $pipeNodemon
backend-api_1 | [nodemon] files triggering change check: dist/modules/database/product/product.entity.js
backend-api_1 | [nodemon] matched rule: /app/dist//*
backend-api_1 | [nodemon] changes after filters (before/after): 1/0
Steps to reproduce
Thank you for any advice.
The text was updated successfully, but these errors were encountered: