conf: 修改 pm2 启动配置文件
This commit is contained in:
15
pm2.config.cjs
Normal file
15
pm2.config.cjs
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"
|
||||
}
|
||||
}]
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
export const 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