Skip to content

Commit 9b4ac42

Browse files
committed
use fastify
1 parent 3f87a6d commit 9b4ac42

File tree

7 files changed

+9299
-5890
lines changed

7 files changed

+9299
-5890
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ src/utils/filljobs2.ts
2424

2525
.idea
2626

27-
.vscode
27+
.vscoded
28+
29+
dist

ecosystem.config.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
apps: [
3+
{
4+
name: "bridges-server",
5+
script: "dist/index.cjs",
6+
instances: 1,
7+
autorestart: true,
8+
watch: false,
9+
max_memory_restart: "1G",
10+
env: {
11+
NODE_ENV: "production",
12+
},
13+
error_file: "logs/err.log",
14+
out_file: "logs/out.log",
15+
restart_delay: 4000,
16+
kill_timeout: 3000,
17+
exp_backoff_restart_delay: 100,
18+
max_restarts: 10,
19+
},
20+
],
21+
};

0 commit comments

Comments
 (0)