- React+Vite Frontend mit Routing, eigenem fetch-Client (kein axios) - Express Backend: Auth (JWT), Topics, Tasks, Leaderboard - PostgreSQL Schema + Seed: 7 Kategorien, 21 Topics, ~25 Aufgaben - Gamification: XP, Level (100×n^1.5), tägliche Streaks - docker-compose auf Port 3100 für DS1621 - Alltagsaufgaben: Finanzen, Geometrie, Physik, Informatik, Verkehr, Shopping
24 lines
752 B
Bash
Executable file
24 lines
752 B
Bash
Executable file
#!/bin/bash
|
|
# Deployment-Skript: baut das Archiv und stellt es per HTTP bereit
|
|
# Auf der DS: wget http://<mac-ip>:8765/mathe-app.tar.gz
|
|
|
|
set -e
|
|
|
|
ARCHIVE="mathe-app.tar.gz"
|
|
|
|
echo "→ Baue Archiv $ARCHIVE ..."
|
|
tar --exclude='node_modules' \
|
|
--exclude='.git' \
|
|
--exclude='frontend/dist' \
|
|
--exclude='*/node_modules' \
|
|
-czf "/tmp/$ARCHIVE" .
|
|
|
|
echo "→ Archiv bereit: /tmp/$ARCHIVE"
|
|
echo "→ Starte HTTP-Server auf Port 8765 ..."
|
|
echo " Auf der DS ausführen:"
|
|
echo " wget http://\$(ipconfig getifaddr en0 2>/dev/null || hostname -I | awk '{print \$1}'):8765/$ARCHIVE -O /tmp/$ARCHIVE"
|
|
echo " Dann: cd /volume1/docker/mathe-app && tar -xzf /tmp/$ARCHIVE"
|
|
echo ""
|
|
echo " Ctrl+C zum Beenden"
|
|
|
|
cd /tmp && python3 -m http.server 8765
|