fix
This commit is contained in:
parent
e8168f4ed4
commit
e4efdfe0e7
13
ecosystem.config.mjs
Normal file
13
ecosystem.config.mjs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
const PORT = 5006;
|
||||||
|
module.exports = {
|
||||||
|
apps: [
|
||||||
|
{
|
||||||
|
name: 'xhs-api-server',
|
||||||
|
script: 'server.py', // 替换为您的Python脚本路径
|
||||||
|
interpreter: 'python', // 替换为您的Python解释器路径
|
||||||
|
env: {
|
||||||
|
XHS_API_PORT: PORT // 从环境变量获取端口,不存在则使用5005
|
||||||
|
},
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@kevisual/social-xhs-api-server",
|
"name": "@kevisual/social-xhs-api-server",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js"
|
"start": "pm2 start ecosystem.config.mjs"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user