diff --git a/Makefile b/Makefile index b41be52..6eb84e9 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ TAR_EXCLUDE := --exclude='.git' \ --exclude='./*.db' \ --exclude='./.DS_Store' -.PHONY: help deploy deploy-clean sync push restart build stop status \ +.PHONY: help deploy sync push restart build stop status \ logs logs-f shell db dev clean-cache check-ssh # ---------------------------------------------------------- @@ -47,8 +47,7 @@ help: @echo "" @echo " Ban Yaro — verfügbare Befehle:" @echo "" - @echo " make deploy Sync + Rebuild + Neustart (mit Layer-Cache, häufigster Befehl)" - @echo " make deploy-clean Wie deploy, aber --no-cache (bei requirements-Änderungen)" + @echo " make deploy Sync + Rebuild + Neustart (häufigster Befehl)" @echo " make sync Nur Dateien zur DS übertragen (ohne Rebuild)" @echo " make push Nur Git push zu Forgejo (Backup/Versionierung)" @echo " make restart Container neustarten (kein Rebuild)" @@ -76,27 +75,7 @@ deploy: check-ssh @git push $(GIT_REMOTE) main @echo "→ Sync zu DS..." @COPYFILE_DISABLE=1 tar czf - $(TAR_EXCLUDE) . | ssh $(DS_HOST) "tar xzf - -C $(DS_PATH)/" - @echo "→ Docker rebuild + restart (mit Layer-Cache)..." - @ssh $(DS_HOST) " \ - cd $(DS_PATH) && \ - $(DOCKER) compose down && \ - $(DOCKER) compose build && \ - $(DOCKER) compose up -d" - @echo "" - @echo " ✓ Deploy fertig. Letzte Logs:" - @ssh $(DS_HOST) "$(DOCKER) logs $(CONTAINER) --tail=15" - -# ---------------------------------------------------------- -# DEPLOY-CLEAN — erzwingt Neuaufbau ohne Layer-Cache -# Nötig wenn: requirements.txt geändert, System-Pakete aktualisiert, -# oder nach einem kaputten Image-State -# ---------------------------------------------------------- -deploy-clean: check-ssh - @echo "→ Git push (Backup)..." - @git push $(GIT_REMOTE) main - @echo "→ Sync zu DS..." - @COPYFILE_DISABLE=1 tar czf - $(TAR_EXCLUDE) . | ssh $(DS_HOST) "tar xzf - -C $(DS_PATH)/" - @echo "→ Docker rebuild (--no-cache) + restart..." + @echo "→ Docker rebuild + restart..." @ssh $(DS_HOST) " \ cd $(DS_PATH) && \ $(DOCKER) compose down && \ @@ -134,12 +113,12 @@ restart: check-ssh @echo " ✓ Neugestartet." # ---------------------------------------------------------- -# BUILD — nur Docker-Image neu bauen (mit Layer-Cache) +# BUILD — nur Docker-Image neu bauen # ---------------------------------------------------------- build: check-ssh @ssh $(DS_HOST) " \ cd $(DS_PATH) && \ - $(DOCKER) compose build" + $(DOCKER) compose build --no-cache" # ---------------------------------------------------------- # STOP diff --git a/backend/static/index.html b/backend/static/index.html index 15e38e0..f0fd842 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -60,6 +60,10 @@ + + Entdecken