Restructure into modules/ with single-process CTP and config/ layout.
Move business code under modules/, env template to config/, PM2 single qihuo process, and _legacy shims for old imports. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-27
@@ -21,12 +21,10 @@ module.exports = {
|
||||
max_memory_restart: "8192M",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
PYTHONPATH: path.join(ROOT, "_legacy"),
|
||||
LANG: "zh_CN.UTF-8",
|
||||
LC_ALL: "zh_CN.UTF-8",
|
||||
LC_CTYPE: "zh_CN.UTF-8",
|
||||
QIHUO_CTP_ROLE: "client",
|
||||
QIHUO_CTP_WORKER_URL: "http://127.0.0.1:6601",
|
||||
QIHUO_CTP_WORKER_TOKEN: "qihuo-local-ctp",
|
||||
QIHUO_STARTUP_WORKERS: "8",
|
||||
QIHUO_MEMORY_MB: "8192",
|
||||
},
|
||||
@@ -34,29 +32,5 @@ module.exports = {
|
||||
out_file: path.join(ROOT, "logs", "pm2-out.log"),
|
||||
time: true,
|
||||
},
|
||||
{
|
||||
name: "qihuo-ctp",
|
||||
script: "ctp_worker.py",
|
||||
cwd: ROOT,
|
||||
interpreter,
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: "8192M",
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
LANG: "zh_CN.UTF-8",
|
||||
LC_ALL: "zh_CN.UTF-8",
|
||||
LC_CTYPE: "zh_CN.UTF-8",
|
||||
QIHUO_CTP_ROLE: "worker",
|
||||
QIHUO_CTP_WORKER_HOST: "127.0.0.1",
|
||||
QIHUO_CTP_WORKER_PORT: "6601",
|
||||
QIHUO_CTP_WORKER_TOKEN: "qihuo-local-ctp",
|
||||
QIHUO_MEMORY_MB: "8192",
|
||||
},
|
||||
error_file: path.join(ROOT, "logs", "pm2-ctp-error.log"),
|
||||
out_file: path.join(ROOT, "logs", "pm2-ctp-out.log"),
|
||||
time: true,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user