conf: 添加 pm2 启动配置文件

This commit is contained in:
2024-01-15 00:17:22 +08:00
parent b37c8cbdd9
commit 0c0a51bdc4

15
pm2.config.js 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"
}
}]
}