feat: 添加生产环境配置,重构 API 请求,更新部署脚本和配置
This commit is contained in:
18
ecosystem.config.js
Normal file
18
ecosystem.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'meme-studio',
|
||||
script: 'server.js',
|
||||
cwd: '/root/apps/meme-studio',
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: '1G',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 3001,
|
||||
HOSTNAME: '0.0.0.0',
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user