Skip to content

Commit bbb7488

Browse files
committed
Add pm2 config
1 parent 84ef58f commit bbb7488

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

pm2.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
name: "server",
3+
script: "./server/main.js",
4+
env_production: {
5+
NODE_ENV: "production"
6+
},
7+
env_development: {
8+
NODE_ENV: "development"
9+
},
10+
watch: ["server"],
11+
watch_delay: 10000,
12+
ignore_watch: ["node_modules", "public"]
13+
}

0 commit comments

Comments
 (0)