修改启动脚本
This commit is contained in:
parent
6f99261670
commit
73ba4e5640
@ -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
26
start.json
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user