From 6a42d79cae59b84f2d24076e03f7fea1d519779f Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 6 Apr 2023 16:48:03 +0800 Subject: [PATCH] =?UTF-8?q?update=20pm2=20=E5=90=AF=E5=8A=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pm2_dev.sh | 2 +- start.json | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/pm2_dev.sh b/pm2_dev.sh index 4ea6e58..f828871 100755 --- a/pm2_dev.sh +++ b/pm2_dev.sh @@ -1 +1 @@ -pm2 start npm --name "chain-client" --log-date-format "YYYY-MM-DD HH:mm:ss" -- run "run:prod" +pm2 start npm --name "chain-client" --log-date-format "YYYY-MM-DD HH:mm:ss" -- run "run:dev:api" diff --git a/start.json b/start.json index 0918f9e..99925b7 100644 --- a/start.json +++ b/start.json @@ -17,24 +17,6 @@ "env_production": { "NODE_ENV": "production" } - }, - { - "name": "chain-monitor", - "script": "npm", - "args": "run prod:monitor", - "cwd": "/data/apps/chain-client", - "max_memory_restart": "1024M", - "log_date_format": "YYYY-MM-DD HH:mm Z", - "watch": false, - "ignore_watch": ["node_modules", "logs", "fixtures", "tasks"], - "instances": 1, - "exec_mode": "fork", - "env": { - "NODE_ENV": "production" - }, - "env_production": { - "NODE_ENV": "production" - } } ] }