Skip to content

Commit 46bdafd

Browse files
committed
feat: Added pm2
1 parent 1bfa28a commit 46bdafd

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

g2-ssr/ecosystem.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
apps: [
3+
{
4+
name: "app",
5+
script: "./app.js",
6+
// 自动重启选项
7+
autorestart: true, // 启用自动重启
8+
restart_delay: 5000, // 重启延迟(毫秒)
9+
},
10+
],
11+
};
12+
13+

g2-ssr/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@rollup/plugin-json": "^6.1.0",
99
"lodash": "^4.17.21",
1010
"nan": "^2.22.2",
11+
"pm2": "^6.0.13",
1112
"node-canvas": "^2.9.0",
1213
"nprogress": "^0.2.0"
1314
},

0 commit comments

Comments
 (0)