fix loading

This commit is contained in:
2025-06-13 16:49:42 +09:00
parent fb0e5107cf
commit 36863e4d9f
3 changed files with 24 additions and 17 deletions

View File

@ -18,7 +18,6 @@ function _env() {
function _server() {
lsof -ti:$port | xargs kill -9 2>/dev/null || true
lsof -ti:11434 | xargs kill -9 2>/dev/null || true
cd $d/my-blog
cargo build --release
$ailog build
@ -46,6 +45,7 @@ function _server_comment() {
}
function _server_ollama(){
lsof -ti:11434 | xargs kill -9 2>/dev/null || true
brew services stop ollama
OLLAMA_ORIGINS="https://log.syui.ai" ollama serve
}
@ -65,9 +65,6 @@ case "${1:-serve}" in
ollama|ol)
_server_ollama
;;
proxy|p)
_server_proxy
;;
serve|s|*)
_server
;;