/
rustaibragimov
/
atlas-platform
Обзор
Документация
Войти
/
rustaibragimov
/
atlas-platform
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
scripts/retry_ai_lili_https.sh
23 строки
689 B
ibragimdeltorro
feat(admin,brand): Lili rebrand, admin dashboard, and Yandex Metrika
12 июл 2026, 17:10
12 июл 2026, 17:10
2c72274
Код
Авторство
О чём код?
#!/usr/bin/env bash # Retry HTTPS for ai-lili.ru until DNS points to this VM. Run on prod VM: # bash scripts/retry_ai_lili_https.sh set -euo pipefail ROOT="$(cd "$(dirname "$0")/.." && pwd)" cd "$ROOT" if ! grep -q '^ATLAS_WEB_PUBLIC_BASE_URL=https://ai-lili.ru' .env.prod 2>/dev/null; then echo "Set ATLAS_WEB_PUBLIC_BASE_URL=https://ai-lili.ru/ in .env.prod first" >&2 exit 1 fi for attempt in $(seq 1 24); do echo "Attempt ${attempt}/24..." if bash scripts/ensure_nginx_atlas.sh; then bash scripts/setup_telegram_webhook.sh || true echo "OK: https://ai-lili.ru/" exit 0 fi sleep 300 done echo "DNS still not ready — check A record in 1gb panel" >&2 exit 1