From 902718ea537f90ea1ffb4602320652463dc9f2a8 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 22 Dec 2025 17:31:12 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- メモ.txt | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/メモ.txt b/メモ.txt index 1cd98db..fb82489 100644 --- a/メモ.txt +++ b/メモ.txt @@ -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" + }'