So I was making a chat like program in js, and I was using nodemon to run It. I have that the chat autosaves into the JSON. However when It does that the whole nodemon server restars, creating a problem. Is there a way to avoid this?
Thanks
So I was making a chat like program in js, and I was using nodemon to run It. I have that the chat autosaves into the JSON. However when It does that the whole nodemon server restars, creating a problem. Is there a way to avoid this?
Thanks
Nodemon allows you to set a configuration in nodemon.json
(root of your project directory), or you can call it with nodemon index.js --config mynodemonconfig.json
add your folder of json to your ignore or remove "json" from ext (not recommended)
{
"ext": "ejs js styl pug json",
"ignore": [
".git",
"node_modules/*"
]
}