"chore: 更新生态配置为ES模块格式"
This commit is contained in:
parent
e4efdfe0e7
commit
f8c5f7cd8c
@ -1,13 +1,13 @@
|
|||||||
const PORT = 5006;
|
const PORT = 5006;
|
||||||
module.exports = {
|
export default {
|
||||||
apps: [
|
apps: [
|
||||||
{
|
{
|
||||||
name: 'xhs-api-server',
|
name: 'xhs-api-server',
|
||||||
script: 'server.py', // 替换为您的Python脚本路径
|
script: 'server.py', // 替换为您的Python脚本路径
|
||||||
interpreter: 'python', // 替换为您的Python解释器路径
|
interpreter: 'python', // 替换为您的Python解释器路径
|
||||||
env: {
|
env: {
|
||||||
XHS_API_PORT: PORT // 从环境变量获取端口,不存在则使用5005
|
XHS_API_PORT: PORT, // 从环境变量获取端口,不存在则使用5005
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@kevisual/social-xhs-api-server",
|
"name": "@kevisual/social-xhs-api-server",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "pm2 start ecosystem.config.mjs"
|
"start": "pm2 start ecosystem.config.mjs"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user