Feature: PocketBase Hook für Inquiry-Benachrichtigung per Mail (checkflo@motocamp.de)

This commit is contained in:
rene 2026-05-17 18:16:21 +02:00
parent fcb95449f5
commit e5aeadd01c
2 changed files with 67 additions and 0 deletions

View file

@ -18,6 +18,10 @@ TAR_EXCLUDE := --exclude='.git' \
--exclude='./.env' \
--exclude='./.DS_Store'
# Hook-Sync: pb_hooks nach jedem Deploy auf DS kopieren
HOOKS_SRC := pocketbase/pb_hooks
HOOKS_DST := /volume1/docker/checkflo/pocketbase/data/pb_hooks
.PHONY: help check-ssh start stop restart status logs logs-f logs-app \
shell-pb pb-admin deploy setup-db seed-demo
@ -58,6 +62,10 @@ check-ssh:
deploy: check-ssh
@echo "→ Sync zu DS..."
@COPYFILE_DISABLE=1 tar czf - $(TAR_EXCLUDE) . | ssh $(DS_HOST) "tar xzf - -C $(DS_PATH)/"
@echo "→ PocketBase Hooks synchronisieren..."
@for f in $(HOOKS_SRC)/*.pb.js; do \
cat "$$f" | ssh $(DS_HOST) "cat > $(HOOKS_DST)/$$(basename $$f)"; \
done
@echo "→ Docker rebuild + restart..."
@ssh $(DS_HOST) " \
cd $(DS_PATH) && \