1 Star 0 Fork 470

webas / doodooke

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pm2.config.js 849 Bytes
一键复制 编辑 原始数据 按行查看 历史
einsqing 提交于 2019-03-04 14:08 . no message
const fs = require("fs");
const path = require("path");
// 切换node
let nodePath = process.execPath;
if (fs.existsSync("./node")) {
nodePath = path.resolve("./node");
}
if (fs.existsSync("./node.exe")) {
nodePath = path.resolve("./node.exe");
}
module.exports = {
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
apps: [
{
name: "doodooke",
script: "app.js",
watch: false,
exec_mode: "fork",
error_file: "./logs/error.log",
out_file: "./logs/out.log",
log_date_format: "YYYY-MM-DD HH:mm:ss",
interpreter: nodePath,
node_args: [],
args: [],
env: {
NODE_ENV: "docker"
}
}
]
};
NodeJS
1
https://gitee.com/yizhan56/doodoo.git
git@gitee.com:yizhan56/doodoo.git
yizhan56
doodoo
doodooke
master

搜索帮助