diff options
author | elioat <{ID}+{username}@users.noreply.github.com> | 2025-01-03 11:22:11 -0500 |
---|---|---|
committer | elioat <{ID}+{username}@users.noreply.github.com> | 2025-01-03 11:22:11 -0500 |
commit | c4b35145dd85f5649c4594b4ec7bb3152728d030 (patch) | |
tree | 162d50ee52321a8b2d1810785c188f859043fdc1 /html/matt-chat | |
parent | 91cba4bb79f8c6f4d58504de9b39b94198007068 (diff) | |
download | tour-c4b35145dd85f5649c4594b4ec7bb3152728d030.tar.gz |
*
Diffstat (limited to 'html/matt-chat')
-rwxr-xr-x | html/matt-chat/server.sh | 9 |
1 files changed, 4 insertions, 5 deletions
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 |