This commit is contained in:
黄心宇 2024-01-12 10:26:39 +08:00
parent a6e3aea2c3
commit f75c5ad7a7
2 changed files with 16 additions and 1 deletions

View File

@ -155,7 +155,8 @@
"analyz": "NODE_ENV=production npm_config_report=true npm run build",
"dev": "npm-run-all --parallel dev:**",
"dev:server": "cross-env NODE_ENV=production nodemon --exec babel-node \"./buildserver/bundle.js\" --watch config --watch server",
"dev:build:server": "cross-env NODE_ENV=production webpack --config config/webpack.server.js"
"dev:build:server": "cross-env NODE_ENV=production webpack --config config/webpack.server.js",
"pm2": "pm2 start pm2.json"
},
"jest": {
"collectCoverageFrom": [

14
pm2.json Normal file
View File

@ -0,0 +1,14 @@
{
"apps": [{
"name": "gitlink-ssr",
"script": "buildserver/bundle.js",
"watch": false,
"log_date_format": "YYYY-MM-DD HH:mm Z",
"exec_mode": "cluster",
"max_memory_restart": "500M",
"env": {
"NODE_ENV": "production"
},
"instances": 0
}]
}