From bb1051b4651147ffe561447cd62eea448d107f14 Mon Sep 17 00:00:00 2001 From: AprilNEA Date: Wed, 27 Dec 2023 12:55:23 +0800 Subject: [PATCH] chore: add pm2 config file --- ecosystem.config.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 00000000..88ce3d14 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,18 @@ +module.exports = { + apps: [ + { + name: 'ChatGPT Admin Web', + script: 'pnpm run start', + instances: 1, + autorestart: true, + watch: false, + max_memory_restart: '2G', + env: { + NODE_ENV: 'development', + }, + env_production: { + NODE_ENV: 'production', + }, + }, + ], +};