From 73ba4e5640a6a2d38864292842041e04f88ab4a5 Mon Sep 17 00:00:00 2001 From: yulixing Date: Mon, 30 Sep 2019 15:03:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=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 --- boundle.sh | 4 ++-- start.json | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 start.json diff --git a/boundle.sh b/boundle.sh index acc4574..08c46dc 100644 --- a/boundle.sh +++ b/boundle.sh @@ -9,7 +9,7 @@ gulp rm -rf ./src -tar -zcvf pikachu_be.tar.gz ./ +tar -zcvf taptap.tar.gz ./ -mkdir target && mv ./pikachu_be.tar.gz ./target/pikachu_be.tar.gz +mkdir target && mv ./taptap.tar.gz ./target/taptap.tar.gz echo 'all done' 2>&1 >> boundle.log diff --git a/start.json b/start.json new file mode 100644 index 0000000..a9cedb0 --- /dev/null +++ b/start.json @@ -0,0 +1,26 @@ +{ + "apps": [ + { + "name": "taptap", + "script": "lib/app.js", + "cwd": "/data/apps/taptap", + "max_memory_restart": "1024M", + "log_date_format" : "YYYY-MM-DD HH:mm Z", + "watch": true, + "ignore_watch": [ + "node_modules", + "logs", + "public", + "fixtures" + ], + "instances": 1, + "exec_mode": "cluster", + "env": { + "NODE_ENV": "production" + }, + "env_production": { + "NODE_ENV": "production" + } + } + ] +}