ae480cb3e7
Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
458 B
JavaScript
21 lines
458 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: "qihuo",
|
|
script: "app.py",
|
|
cwd: "/opt/qihuo",
|
|
interpreter: "/opt/qihuo/venv/bin/python",
|
|
instances: 1,
|
|
autorestart: true,
|
|
watch: false,
|
|
max_memory_restart: "300M",
|
|
env: {
|
|
NODE_ENV: "production",
|
|
},
|
|
error_file: "/opt/qihuo/logs/pm2-error.log",
|
|
out_file: "/opt/qihuo/logs/pm2-out.log",
|
|
time: true,
|
|
},
|
|
],
|
|
};
|