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.
21 lines
715 B
21 lines
715 B
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'rtsp-stream-server', // app名称
|
|
script: './bin/www', // 要运行的脚本的路径。
|
|
args: '', // 由传递给脚本的参数组成的字符串或字符串数组。
|
|
output: './log/out.log',
|
|
error: './log/error.log',
|
|
log: './log/combined.outerr.log',
|
|
// merge_logs: true, // 集群的所有实例的日志文件合并
|
|
log_date_format: "YYYY-MM-DD HH:mm Z",
|
|
instances: 1, // 进程数 1、数字 2、'max'根据cpu内核数
|
|
max_memory_restart: '1G', // 当内存超过1024M时自动重启
|
|
watching: true,
|
|
env_dev: {
|
|
"PORT": 3000,
|
|
"NODE_ENV": "development"
|
|
}
|
|
}
|
|
],
|
|
}
|