How restart machine? I edit package.json file and don’t help me, index.js isn’t restart.
Error: Terminated
/opt/watcher/app-types/node/start.sh: line 9: wait_for: No record of process 1245
How restart machine? I edit package.json file and don’t help me, index.js isn’t restart.
Error: Terminated
/opt/watcher/app-types/node/start.sh: line 9: wait_for: No record of process 1245
Just confirming that I also got this error today:
/opt/watcher/app-types/utils.sh: line 49: wait_for: No record of process 25852
I have no idea what caused it, but it occurred after a boosted app of mine apparently went above the memory limit.
If you get this error, create a file called watch.json
, and paste this code into it:
{
"install": {
"include": [
"^package\\.json$",
"^\\.env$"
]
},
"restart": {
"exclude": [
"^public/",
"^dist/"
],
"include": [
"\\.html$",
"\\.js$",
"\\.json$"
]
},
"throttle": 1000000000
}
The “throttle” value is the number of milliseconds after making an edit to your code that the app restarts. The default on glitch is something like 1000, but I set it much higher because I don’t like the auto-restarts. To trigger a restart, you just edit the watch.json
file (e.g. add a space somewhere and then delete it).
So that’s how I solved this error - just edit the watch.json
file to trigger a restart.