Luis123321 commited on
Commit
caf18b3
·
verified ·
1 Parent(s): 32abb93

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +9 -2
start.sh CHANGED
@@ -1,5 +1,10 @@
1
  #!/bin/bash
2
 
 
 
 
 
 
3
  # Generiert config.json aus den hinterlegten Hugging Face Secrets
4
  cat <<EOF > $HOME/.nanobot/config.json
5
  {
@@ -24,8 +29,10 @@ cat <<EOF > $HOME/.nanobot/config.json
24
  }
25
  EOF
26
 
27
- # Dummy-Server für den Hugging Face Port-Health-Check
 
 
28
  python -m http.server 7860 &
29
 
30
- # Gateway starten
31
  nanobot gateway
 
1
  #!/bin/bash
2
 
3
+ # Erzwingt die direkte Ausgabe von Python-Logs (verhindert das Verschlucken von Fehlermeldungen)
4
+ export PYTHONUNBUFFERED=1
5
+
6
+ echo "[INFO] Generiere Konfiguration..."
7
+
8
  # Generiert config.json aus den hinterlegten Hugging Face Secrets
9
  cat <<EOF > $HOME/.nanobot/config.json
10
  {
 
29
  }
30
  EOF
31
 
32
+ echo "[INFO] Konfiguration erfolgreich erstellt."
33
+
34
+ echo "[INFO] Starte Dummy-Webserver für Hugging Face Health-Check..."
35
  python -m http.server 7860 &
36
 
37
+ echo "[INFO] Starte Nanobot Gateway..."
38
  nanobot gateway