feat: add verify-deploy, check-env, and db-optimize helper scripts
CI / check (push) Successful in 4m13s
CI / deploy (push) Successful in 19s
CI / publish-container (push) Successful in 1m19s

This commit is contained in:
openhands committed 2026-09-13 21:12:50 +02:00
1 parent 7840f44e5e
commit f2b64bc83a
3 files changed
+44

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Check if .env has all keys from .env.example
cd "$(dirname "$0")/.."
if [ ! -f .env ]; then echo ".env missing"; exit 1; fi
if [ ! -f .env.example ]; then echo ".env.example missing, cannot compare."; exit 0; fi
# Extract keys and compare
env_keys=$(cut -d'=' -f1 .env | sort)
ex_keys=$(cut -d'=' -f1 .env.example | sort)
missing=$(comm -23 <(echo "$ex_keys") <(echo "$env_keys"))
if [ -n "$missing" ]; then
echo "Missing env keys:"
echo "$missing"
exit 1
fi
echo "All env keys present."