From b3c1559ea60d1ecff7c6555bc779bba9ada0a625 Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 17 Mar 2023 15:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0pm2=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 start.json diff --git a/start.json b/start.json new file mode 100644 index 0000000..19cb95b --- /dev/null +++ b/start.json @@ -0,0 +1,22 @@ +{ + "apps": [ + { + "name": "wallet-mail", + "script": "npm", + "args": "run prod:api", + "cwd": "/data/apps/wallet-mail", + "max_memory_restart": "1024M", + "log_date_format": "YYYY-MM-DD HH:mm Z", + "watch": true, + "ignore_watch": ["node_modules", "logs", "fixtures", "tasks"], + "instances": 1, + "exec_mode": "cluster", + "env": { + "NODE_ENV": "production" + }, + "env_production": { + "NODE_ENV": "production" + } + } + ] +}