MisterAI commited on
Commit
6be3489
·
verified ·
1 Parent(s): 7d54784

Create HFSpace_Entrypoint.sh

Browse files
Files changed (1) hide show
  1. HFSpace_Entrypoint.sh +10 -0
HFSpace_Entrypoint.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Lancer LocalAI sur le port 8080
4
+ /local-ai --address 0.0.0.0:8080 &
5
+
6
+ # Attendre LocalAI 30Secondes ou Recharger la Page Manuellement Après Demarrage si Nginx Bad Gateway
7
+ sleep 30
8
+
9
+ # Lancer Nginx au premier plan
10
+ nginx -g "daemon off;"