feat(M01-C): 建立MySQL异步任务基础
This commit is contained in:
@@ -11,6 +11,18 @@ module.exports = {
|
||||
QIPAI_API_HOST: '127.0.0.1',
|
||||
QIPAI_API_PORT: '3001'
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'qipai-worker',
|
||||
cwd: '/opt/apps/qipai-backend/current/backend',
|
||||
script: 'dist/tasks/worker.js',
|
||||
instances: 1,
|
||||
exec_mode: 'fork',
|
||||
restart_delay: 3000,
|
||||
kill_timeout: 10000,
|
||||
env: {
|
||||
NODE_ENV: 'production'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user