From b308e74a7ce39f77992fdd2532ec19b5e1f04b0d Mon Sep 17 00:00:00 2001 From: feie9454 Date: Thu, 21 Aug 2025 17:36:08 +0800 Subject: [PATCH] add pm2 config --- pm2.config.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pm2.config.js diff --git a/pm2.config.js b/pm2.config.js new file mode 100644 index 0000000..9d19332 --- /dev/null +++ b/pm2.config.js @@ -0,0 +1,21 @@ +module.exports = { + apps: [ + { + name: 'phylab-home', + script: 'bun', + args: 'run start', + cwd: __dirname, + instances: 1, + exec_mode: 'fork', + watch: false, + max_memory_restart: '1G', + error_file: './logs/err.log', + out_file: './logs/out.log', + log_file: './logs/combined.log', + time: true, + autorestart: true, + max_restarts: 10, + min_uptime: '10s' + } + ] +}