chore: add pm2 config for deploy

This commit is contained in:
Nicola Zambello 2022-02-10 10:53:12 +01:00
parent 718b8cc320
commit 3e51dda109

18
ecosystem.config.js Normal file
View file

@ -0,0 +1,18 @@
module.exports = {
apps: [
{
name: "explit",
script: "npm",
args: "start",
autorestart: true,
watch: false,
max_memory_restart: "1G",
env: {
NODE_ENV: "production",
},
env_production: {
NODE_ENV: "production",
},
},
],
};