conf: 添加 pm2 启动配置文件

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

13
pm2.config.js Normal file
View File

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