Files
soul/ecosystem.config.cjs

20 lines
530 B
JavaScript
Raw Normal View History

/**
* PM2 配置用于 standalone 部署的服务器
* 启动方式node server.js不要用 npm start / next startstandalone next 命令
* 使用pm2 start ecosystem.config.cjs PORT=3006 pm2 start server.js --name soul
*/
module.exports = {
apps: [
{
name: 'soul',
script: 'server.js',
interpreter: 'node',
env: {
NODE_ENV: 'production',
PORT: 3006,
},
cwd: undefined, // 以当前目录为准,部署时在 /www/wwwroot/soul
},
],
};