1 Star 0 Fork 10

彭涛/koa2-typescript

forked from CPC123456/koa2-typescript 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pm2.config.js 863 Bytes
一键复制 编辑 原始数据 按行查看 历史
CPC123456 提交于 2023-08-30 14:57 +08:00 . feat: 完善
/* eslint-disable */
const pkg = require("./package.json");
const path = require("path");
module.exports = {
apps: [
{
"name": pkg.name,//应用程序名称
"script": "bin/www",//应用程序的脚本路径
"cwd": "./",//根目录
"instances": 1,//应用启动实例个数,仅在cluster模式有效,默认为fork;
"exec_mode": "cluster",//应用程序启动模式,支持fork和cluster模式,默认是fork;
error_file: path.join(__dirname, "logs", "error.log"), // 错误日志文件路径
out_file: path.join(__dirname, "logs", "out.log"),
"max_restarts": 10,
"instance_var": "INSTANCE_ID",
"merge_logs": true,
log_date_format: "YYYY-MM-DD_HH-mm-ss",
max_memory_restart: "1G"
}
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/pengtao211/koa2-typescript.git
git@gitee.com:pengtao211/koa2-typescript.git
pengtao211
koa2-typescript
koa2-typescript
master

搜索帮助