add dev setup, sync trigger scripts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
14
scripts/dev-sync.sh
Executable file
14
scripts/dev-sync.sh
Executable 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."
|
||||
Reference in New Issue
Block a user