From c4b35145dd85f5649c4594b4ec7bb3152728d030 Mon Sep 17 00:00:00 2001 From: elioat <{ID}+{username}@users.noreply.github.com> Date: Fri, 3 Jan 2025 11:22:11 -0500 Subject: * --- html/matt-chat/server.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'html/matt-chat') diff --git a/html/matt-chat/server.sh b/html/matt-chat/server.sh index 80a44f2..c526f9e 100755 --- a/html/matt-chat/server.sh +++ b/html/matt-chat/server.sh @@ -1,9 +1,8 @@ #!/bin/bash -# check that the ollama server is running, if it isn't, start it +# check that the ollama server is running, if it isn't, start it in the background and continue with the script if ! pgrep -f ollama; then - echo "Ollama server is not running. Starting it now..." - ollama start + ollama start & fi # check that port 38478 is free @@ -12,8 +11,8 @@ if lsof -i :38478; then exit 1 fi -# Start a simple HTTP server using Python on port 38478 -python3 -m http.server 38478 +# Start a simple HTTP server using Python on port 38478 and run it in the background +python3 -m http.server 38478 & # nvim ~/Library/LaunchAgents/com.user.server.plist -- cgit 1.4.1-2-gfad0 t/tour/'>summary refs log tree commit diff stats