1 Star 1 Fork 0

we_coder/koa-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ecosystem.config.js 695 Bytes
一键复制 编辑 原始数据 按行查看 历史
杨波 提交于 2022-07-13 16:57 +08:00 . 放弃webpack改为使用rollup
module.exports = {
apps: [{
name: 'koa-app',
interpreter: './node_modules/.bin/ts-node', // 指定解释器
cwd: './',
script: './app/app.ts',
args: 'null',
instances: 2, // 集群实例,可以只有一个,这样表现上与fork无异,但可以用scale
exec_mode: 'cluster', // 集群模式,如不指定,默认为fork
autorestart: true,
min_uptime: '60s',
max_restarts: 3,
watch: true,
error_file: './logs/app-err.log',
out_file: './logs/app-out.log',
log: './logs/app.log',
max_memory_restart: '1G',
kill_timeout: 3000,
ignore_watch: ['node_modules'],
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
}]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/we_coder/koa-app.git
git@gitee.com:we_coder/koa-app.git
we_coder
koa-app
koa-app
master

搜索帮助