add dev setup, sync trigger scripts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 12:22:46 +01:00
parent f4560913c9
commit 35f558b323
2 changed files with 38 additions and 0 deletions

14
scripts/dev-sync.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
API_URL="${API_URL:-http://localhost:3000}"
ACCOUNT_ID="${ACCOUNT_ID:-personal}"
CHANNEL_NAME="${CHANNEL_NAME:-personal}"
echo "Triggering sync..."
curl -s -X POST "${API_URL}/api/sync" \
-H "Content-Type: application/json" \
-d "{\"accountId\": \"${ACCOUNT_ID}\", \"channelName\": \"${CHANNEL_NAME}\"}"
echo ""
echo "Done."