project keep re-installing packages and this makes project down for like 10 minutes
Take a look at https://glitch.com/edit/#!/glitchnomicon
It tells you how to use files like watch.json or glitch.json, which can help
-
install
: determines which files will cause Glitch to terminate the server, run theinstall
command, and runstart
again.install
takes the sameinclude
andexclude
Arrays asrestart
. -
throttle
: if you find that the Glitch watcher is over-eagerly restarting the server, you can change how long it waits after it sees a change to restart.- value is the number of milliseconds to wait after a change to restart
@invalid-user add a file called watch.json, then paste the following:
{
"install": {
"include": [
"^package\\.json$",
"^\\.env$"
]
},
"restart": {
"exclude": [
"^public/",
"^dist/"
],
"include": [
"\\.js$",
"\\.coffee$",
"\\.json"
]
},
"throttle": 9000000
}
This will make the auto restart happen after 9000000 minutes. Basically never in other words
You might wanna know that its 9000000 milliseconds and not minutes, meaning 9000 seconds (2.5 hours)
But how I reload commands then?
just type space after }