conf: 修改 pm2 启动配置文件

This commit is contained in:
2024-01-15 00:32:02 +08:00
parent feb45a405d
commit 52085f21b5
2 changed files with 15 additions and 13 deletions

15
pm2.config.cjs Normal file
View File

@@ -0,0 +1,15 @@
module.exports = {
apps: [{
name: "labplus-server",
script: "./src/index.js",
watch: [
"src"
],
ignore_watch: [
"node_modules"
],
env: {
"NODE_ENV": "production"
}
}]
}