Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
王小舟
/
ask_data_llm_middleware
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c6c7eabc
authored
Apr 16, 2026
by
imwangxiaozhou
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: 将启动脚本中的 python 命令统一替换为 python3
避免在不同系统环境中因 python 命令别名问题导致执行失败,确保使用 Python 3 解释器。
1 parent
5cec632b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
start.sh
start.sh
View file @
c6c7eab
...
@@ -14,7 +14,7 @@ echo "=== 门店管理服务启动脚本 ==="
...
@@ -14,7 +14,7 @@ echo "=== 门店管理服务启动脚本 ==="
# 1. 检查依赖
# 1. 检查依赖
if
[
-f
"requirements.txt"
]
;
then
if
[
-f
"requirements.txt"
]
;
then
echo
"正在检查并安装依赖..."
echo
"正在检查并安装依赖..."
pip install -r requirements.txt > /dev/null 2>&1
pip
3
install -r requirements.txt > /dev/null 2>&1
fi
fi
# 2. 启动同步任务 (后台运行)
# 2. 启动同步任务 (后台运行)
...
@@ -22,7 +22,7 @@ if [ -f "$SYNC_PID" ] && ps -p $(cat "$SYNC_PID") > /dev/null 2>&1; then
...
@@ -22,7 +22,7 @@ if [ -f "$SYNC_PID" ] && ps -p $(cat "$SYNC_PID") > /dev/null 2>&1; then
echo
"警告: 同步服务已在运行 (PID:
$(
cat
$SYNC_PID
)
)。"
echo
"警告: 同步服务已在运行 (PID:
$(
cat
$SYNC_PID
)
)。"
else
else
echo
"正在启动定时同步服务 (每12小时一次)..."
echo
"正在启动定时同步服务 (每12小时一次)..."
nohup python sync_data.py >
"
$SYNC_LOG
"
2>&1 &
nohup python
3
sync_data.py >
"
$SYNC_LOG
"
2>&1 &
echo
$!
>
"
$SYNC_PID
"
echo
$!
>
"
$SYNC_PID
"
echo
"同步服务已启动 (PID:
$!
)"
echo
"同步服务已启动 (PID:
$!
)"
fi
fi
...
@@ -41,7 +41,7 @@ else
...
@@ -41,7 +41,7 @@ else
HOST
=
${
CONF_HOST
:-
0
.0.0.0
}
HOST
=
${
CONF_HOST
:-
0
.0.0.0
}
echo
"配置信息:
$HOST
:
$PORT
"
echo
"配置信息:
$HOST
:
$PORT
"
nohup python search_merchants.py --server --host
"
$HOST
"
--port
"
$PORT
"
>
"
$API_LOG
"
2>&1 &
nohup python
3
search_merchants.py --server --host
"
$HOST
"
--port
"
$PORT
"
>
"
$API_LOG
"
2>&1 &
echo
$!
>
"
$API_PID
"
echo
$!
>
"
$API_PID
"
echo
"API 服务已启动 (PID:
$!
)"
echo
"API 服务已启动 (PID:
$!
)"
fi
fi
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment