lightlimx-website/ecosystem.config.js

23 lines
555 B
JavaScript

module.exports = {
apps : [{
name: "Limix",
script: "./node_modules/nuxt/bin/nuxt.js",
// watch: ["src"],
//ignore_watch: ["node_modules", "logger"],
//max_memory_restart: "300M",
exec_mode: "cluster", // 开启多线程模式,用于负载均衡
instances: "max", // 启用多少个实例,可用于负载均衡
//autorestart: true,
//pm2:true,
args: 'start',
//kill_timeout: 3000,
//instance_var: "INSTANCE_ID",
//env: {
// NODE_ENV: "development",
//},
//env_production: {
// NODE_ENV: "production",
//}
}]
}