From e0a54d211fd1d78d2afbf82653d46ca8d473280e Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Thu, 2 Apr 2026 19:50:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=20PM2=20=E7=9A=84?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=20ecosystem.config.js?= =?UTF-8?q?=EF=BC=8C=E6=96=B9=E4=BE=BF=E4=BD=BF=E7=94=A8=20PM2=20=E6=9D=A5?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=92=8C=E9=83=A8=E7=BD=B2=20Node.js=20?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecosystem.config.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ecosystem.config.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..feb7909 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,23 @@ +module.exports = { + apps: [ + { + name: 'media-coding-web', + script: './server.js', + cwd: __dirname, + instances: 1, + autorestart: true, + watch: false, + max_memory_restart: '512M', + env: { + NODE_ENV: 'production', + PORT: 3000, + HOST: '0.0.0.0', + AWS_REGION: 'us-east-1', + S3_BUCKET_ADDRESS: 'https://s3.example.com/your_bucket_name', + S3_ENDPOINT: 'http://127.0.0.1:9000', + S3_FORCE_PATH_STYLE: 'true', + APP_TITLE: 'S3 Media Transcoder' + } + } + ] +};