bentebbutt commited on
Commit
2b2102f
·
verified ·
1 Parent(s): fcdafa1

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +4 -0
run.sh CHANGED
@@ -1,8 +1,12 @@
1
  #!/bin/bash
2
 
 
 
3
 
4
  cd backend
 
5
  # Start FastAPI app in the background on port 8000
6
  uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid
 
7
  # Start Nginx
8
  nginx -g 'daemon off;'
 
1
  #!/bin/bash
2
 
3
+ # Serve the ollama model in the background
4
+ ollama serve &
5
 
6
  cd backend
7
+
8
  # Start FastAPI app in the background on port 8000
9
  uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid
10
+
11
  # Start Nginx
12
  nginx -g 'daemon off;'