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