添加了 PM2 的配置文件 ecosystem.config.js,方便使用 PM2 来管理和部署 Node.js 应用。
This commit is contained in:
23
ecosystem.config.js
Normal file
23
ecosystem.config.js
Normal file
@@ -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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user