Skip to content

Commit

Permalink
perf: pm2 config
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohaodu committed Apr 26, 2024
1 parent 7cd57c7 commit 25eda83
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker/dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
volumes:
- ./web-chat-x-express:/web-chat-x-express
working_dir: /web-chat-x-express
entrypoint: pm2-runtime start ecosystem.config.js
entrypoint: pm2-runtime start ecosystem.config.cjs
web-chat-x-vue:
image: nginx:stable-perl
container_name: web-chat-x-vue
Expand Down
2 changes: 1 addition & 1 deletion docker/prod/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
volumes:
- ./web-chat-x-express:/web-chat-x-express
working_dir: /web-chat-x-express
entrypoint: pm2-runtime start ecosystem.config.js
entrypoint: pm2-runtime start ecosystem.config.cjs
web-chat-x-vue:
image: nginx:stable-perl
container_name: web-chat-x-vue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ module.exports = {
{
name: "web-chat-x-express", // app name
script: "./index.js", // 启动执行文件
node_args: "--harmony",
watch: true,
exec_mode: "cluster",
instances: "max",
exec_mode: "fork",
watch_delay: 1000, // 文件变化后,延迟重启时间
},
],
Expand Down
2 changes: 1 addition & 1 deletion packages/web-chat-x-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"dev": "nodemon ./src/main",
"build": "tsc && ncc build ./dist/main.js -o build && pnpm copy",
"copy": "copyfiles ecosystem.config.js build"
"copy": "copyfiles ecosystem.config.cjs build"
},
"keywords": [],
"license": "ISC",
Expand Down

0 comments on commit 25eda83

Please sign in to comment.