Several random fixes + updates to pm2 script.

This commit is contained in:
Patrick Fic
2020-07-15 11:54:24 -07:00
parent bdd1f53ff9
commit bf74d9a042
8 changed files with 78 additions and 26 deletions

View File

@@ -4,9 +4,16 @@ module.exports = {
name: "ImEX Online API",
script: "./server.js",
watch: true,
watch_delay: 1000,
ignore_watch: ["node_modules", "client/img"],
watch_options: {
followSymlinks: false,
},
env: {
NODE_ENV: "production",
},
instances: "max",
exec_mode: "cluster",
},
],
};