Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copy this file to .env and fill in your values

# Required — your license key from Vector Stream Systems
VECTORMBE_LICENSE_KEY=VOWL-F4SJ-KHL5-6T78-F3A5
VECTORMBE_LICENSE_KEY=your-license-key-here

# ════════════════════════════════════════════════════════════════════
# DEFAULT: everything runs LOCAL & FREE (no cloud calls, no API cost)
Expand Down
2 changes: 1 addition & 1 deletion deploy/recovery/health-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -uo pipefail
LOG_FILE="/opt/vectormbe/recovery/logs/health-check.log"
mkdir -p "$(dirname "$LOG_FILE")"

API_KEY="${VECTORMBE_ADMIN_KEY:-506c75c707a47278c4614943582929ad215075865ee675f47538d29dfb0933af}"
API_KEY="${VECTORMBE_ADMIN_KEY:?set VECTORMBE_ADMIN_KEY}"
HEALTH_STATUS=0
WARNINGS=0

Expand Down
2 changes: 1 addition & 1 deletion deploy/recovery/simulate-failure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ fi

# 4. Network recovery check
log "Checking network-dependent services..."
API_KEY="${VECTORMBE_ADMIN_KEY:-506c75c707a47278c4614943582929ad215075865ee675f47538d29dfb0933af}"
API_KEY="${VECTORMBE_ADMIN_KEY:?set VECTORMBE_ADMIN_KEY}"
if curl -sf --max-time 5 -H "X-API-Key: $API_KEY" http://127.0.0.1:8080/api/health >/dev/null 2>&1 || curl -sf --max-time 5 -H "X-API-Key: $API_KEY" http://127.0.0.1:8080/ >/dev/null 2>&1; then
log "[PASS] Backend reachable after recovery"
else
Expand Down
2 changes: 1 addition & 1 deletion deploy/recovery/validate-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mkdir -p "$(dirname "$LOG_FILE")"

PASS=0
FAIL=0
API_KEY="${VECTORMBE_ADMIN_KEY:-506c75c707a47278c4614943582929ad215075865ee675f47538d29dfb0933af}"
API_KEY="${VECTORMBE_ADMIN_KEY:?set VECTORMBE_ADMIN_KEY}"

log() {
echo "[$(date -Iseconds)] $*" | tee -a "$LOG_FILE"
Expand Down
2 changes: 1 addition & 1 deletion deploy/recovery/watchdog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -uo pipefail
LOG_FILE="/opt/vectormbe/recovery/logs/watchdog.log"
mkdir -p "$(dirname "$LOG_FILE")"

API_KEY="${VECTORMBE_ADMIN_KEY:-506c75c707a47278c4614943582929ad215075865ee675f47538d29dfb0933af}"
API_KEY="${VECTORMBE_ADMIN_KEY:?set VECTORMBE_ADMIN_KEY}"
RECOVERY_ACTIONS=0
MAX_RECOVERIES=5

Expand Down
3 changes: 2 additions & 1 deletion scripts/dev-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ if ss -tln 2>/dev/null | grep -qE ':8080\s'; then
echo "[ok] Already listening on :8080 (vectormbed)"
else
echo "Starting vectormbed on http://127.0.0.1:8080 ..."
export VECTORMBE_LICENSE_KEY="${VECTORMBE_LICENSE_KEY:-VOWL-F4SJ-KHL5-6T78-F3A5}"
: "${VECTORMBE_LICENSE_KEY:?set VECTORMBE_LICENSE_KEY (see .env.example)}"
export VECTORMBE_LICENSE_KEY
cargo run -p vectormbed &
VECTORMBED_PID=$!
for _ in $(seq 1 90); do
Expand Down
Loading