setup.sh aktualisiert

This commit is contained in:
2026-03-08 00:43:21 +00:00
parent 259e2f3208
commit d7c66ca572

View File

@@ -40,8 +40,8 @@ source venv/bin/activate
echo "--- Installiere Python-Pakete aus requirements.txt..."
pip install --upgrade pip
if [ -f "requirements.txt" ]; then
pip install -r requirements.txt
if [ -f "source/requirements.txt" ]; then
pip install -r source/requirements.txt
else
echo "FEHLER: requirements.txt nicht im Repository gefunden!"
exit 1
@@ -56,10 +56,10 @@ else
fi
# 6. Static Ordner anlegen und Dateien herunterladen
if [ ! -f "./static" ]; then
if [ ! -f "source/static" ]; then
echo "--- Static-Ordner anlegen und Dateien herunterladen..."
mkdir -p static
cd static
mkdir -p source/static
cd source/static
# GridStack
wget https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack.min.css
wget https://cdn.jsdelivr.net/npm/gridstack@7.2.3/dist/gridstack-all.js
@@ -70,7 +70,7 @@ if [ ! -f "./static" ]; then
wget https://cdn.jsdelivr.net/npm/xterm-addon-fit@0.7.0/lib/xterm-addon-fit.js
# marked.js
wget https://cdn.jsdelivr.net/npm/marked/marked.min.js
cd ..
cd ../../
else
echo "--- Static-Dateien existieren bereits."
fi
@@ -78,4 +78,5 @@ echo ">>> Installation abgeschlossen!"
echo "--- Starte J.A.R.V.I.S. - AI auf Port 8000..."
# 6. Programm starten
python3 -m uvicorn main:app --host 0.0.0.0 --port 8000
export PYTHONPATH=$PYTHONPATH:$(pwd)/source
python3 -m uvicorn source.main:app --host 0.0.0.0 --port 8000