修改启动脚本

This commit is contained in:
yulixing 2019-09-30 15:03:53 +08:00
parent 6f99261670
commit 73ba4e5640
2 changed files with 28 additions and 2 deletions

View File

@ -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

26
start.json Normal file
View File

@ -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"
}
}
]
}