conf: 添加 pm2 启动配置文件
This commit is contained in:
15
pm2.config.js
Normal file
15
pm2.config.js
Normal 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"
|
||||
}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user