1 Star 0 Fork 469

孙显灝 / 多多客(doodooke)微信小程序SaaS平台

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pm2.config.js 877 Bytes
一键复制 编辑 原始数据 按行查看 历史
einsqing 提交于 2020-04-02 11:06 . no message
const fs = require("fs");
const path = require("path");
// 切换node
let nodePath = process.execPath;
if (fs.existsSync("./start")) {
nodePath = path.resolve("./start");
}
if (fs.existsSync("./start.exe")) {
nodePath = path.resolve("./start.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",
instances: 1,
interpreter: nodePath,
node_args: [],
args: [],
env: {
NODE_ENV: "docker"
}
}
]
};
NodeJS
1
https://gitee.com/sun_xianhao/doodoo.git
git@gitee.com:sun_xianhao/doodoo.git
sun_xianhao
doodoo
多多客(doodooke)微信小程序SaaS平台
master

搜索帮助