I have problems with reloading PM2 configuration file after editing it:
{
"apps": [
...
{
"name": "foo",
"script": "foo/index.js",
"cwd": "foo",
"watch": false
}
]
}
I previously did
pm2 restart config.json
and
pm2 reload config.json
and
pm2 gracefulReload config.json
but they didn't reload the configuration for existing apps (the changes in app config did not apply). The only way that worked for me was:
pm2 delete foo
pm2 restart config.json
How is this supposed to be done?