This commit is contained in:
admin
2025-12-22 17:31:12 +09:00
parent 001b7bf08f
commit 902718ea53

View File

@@ -128,14 +128,22 @@ bot.py
docker stop ollama-rc-bot
docker rm ollama-rc-bot
docker build --no-cache -t ollama-rc-bot .
docker run -d --name ollama-rc-bot -p 5100:5005 ollama-rc-bot
② 重新 build 镜像(必须)
docker build --no-cache -t ollama-rc-bot .
③ 重新启动容器
docker run -d \
--name ollama-rc-bot \
-p 5100:5005 \
ollama-rc-bot
docker run -d --name ollama-rc-bot -p 5100:5005 ollama-rc-bot
④ 看日志,确认新代码真的在跑
docker logs -f ollama-rc-bot
--------------------
先实时跟日志(非常重要)
docker logs -f ollama-rc-bot
再开一个窗口,重新 curl 一次
curl -X POST http://127.0.0.1:5100/ollama \
-H "Content-Type: application/json" \
-d '{
"text": "@ai 下午三点开会",
"channel_id": "#Room"
}'