first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* PM2 进程配置 — 知命阁(zhimingge)
|
||||
* 部署目录:/opt/zhimingge
|
||||
*
|
||||
* 启动:pm2 start ecosystem.config.cjs
|
||||
* 重启:pm2 restart zhimingge
|
||||
*/
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "zhimingge",
|
||||
cwd: "/opt/zhimingge",
|
||||
script: "node_modules/next/dist/bin/next",
|
||||
args: "start",
|
||||
instances: 1,
|
||||
exec_mode: "fork",
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: "512M",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
PORT: 3000,
|
||||
},
|
||||
error_file: "/opt/zhimingge/logs/pm2-error.log",
|
||||
out_file: "/opt/zhimingge/logs/pm2-out.log",
|
||||
log_date_format: "YYYY-MM-DD HH:mm:ss",
|
||||
merge_logs: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user