Open AltayAkkus opened 3 years ago
hi! wanna know if you have figured out how to deal with watch/ignore_watch, since I still failing to. As I see most of the issues here remains unanswered, I feel it would be much quicker to ask someone directly.
module.exports = {
apps : [{
"name":"frontend",
"cwd":"./2senses",
"script":"gatsby",
"args":"build",
"watch":["src", "./src"],
"ignore_watch" : ["[\/\\]\./", "./node_modules", "./public", "node_modules", "public"],
"watch_options": {
"followSymlinks": false
}
},
{
"name":"backend",
"cwd":"./cms",
"script":"strapi",
"args":"start",
},
{
"name":"mailserver",
"cwd":"./sender",
"script":"nodemon",
"args":"nodemailer",
}
],
}
this is how my ecosystem.config.js looks, still my frontend is rebuilding like a crazy one (1000 rebuilds since yesterday's evening).
What's going wrong?
I updated my ecosystem.config.js to ignore changes in a upload folder, because that bricks my application. Now the ecosystem file bricks my application :sunglasses:
How could we reproduce this issue?
Run Strapi, add this ecosystem.config.json and start it via pm2 start
Supporting information
I think the issue is the following: I have set watch to true, and then added ignore_watch. It somehow messes with the PM2 watching process, because now its listening to literally every change.
When I comment out the ignore_watch, it starts like usual, does not listen to the change on
.strapi.updater.json
, but listens topublic/uploads
which disables uploading to my server :D Am I missing something in the documentation or this is a weird edge case due towatch: true
?