about summary refs log tree commit diff stats
path: root/html/matt-chat
diff options
context:
space:
mode:
Diffstat (limited to 'html/matt-chat')
-rwxr-xr-xhtml/matt-chat/server.sh9
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
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189