CakeHunter commited on
Commit
4e0d2be
·
1 Parent(s): d4f253a

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +13 -12
start.sh CHANGED
@@ -1,12 +1,13 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- echo "== Avvio container =="
5
- # indicizzazione automatica solo se mancano i file indice
6
- if [ ! -f /app/index.npz ] || [ ! -f /app/index_meta.json ]; then
7
- echo "Indice non trovato: eseguo ingest in modalità fast..."
8
- python /app/ingest.py --no-estimate --fast
9
- fi
10
-
11
- echo "== Lancio API =="
12
- exec uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}
 
 
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ echo "== Avvio container =="
5
+ # indicizzazione automatica solo se mancano i file indice
6
+ if [ ! -f /app/index.npz ] || [ ! -f /app/index_meta.json ]; then
7
+ echo "Indice non trovato: eseguo ingest in modalità fast..."
8
+ python /app/ingest.py --no-estimate --fast
9
+ fi
10
+
11
+ echo "== Lancio API =="
12
+ exec uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}
13
+