You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
654 B
17 lines
654 B
module.exports = { |
|
apps: [ |
|
{ |
|
name: 'qry-python-js', // 应用的名称 |
|
script: './app.js', // Express 应用的入口文件 |
|
instances: 'max', // 启动的实例数('max' 表示使用所有可用的 CPU 核心) |
|
exec_mode: 'cluster', // 使用集群模式 |
|
env: { |
|
NODE_ENV: 'development', // 开发环境的环境变量 |
|
}, |
|
env_production: { |
|
NODE_ENV: 'production', // 生产环境的环境变量 |
|
PORT: 80, // 自定义环境变量示例 |
|
}, |
|
}, |
|
], |
|
};
|
|
|