chore(make): add verification-token target for multi-stand email lookup

make verification-token EMAIL=… STAND=local|dev|ift|stage|calentiq
fetches admin verification token via Admin API. [skip ci]
This commit is contained in:
2026-07-28 22:26:44 +03:00
parent bc85f5ab06
commit 76548e578b
2 changed files with 222 additions and 1 deletions
+7 -1
View File
@@ -1,5 +1,5 @@
.PHONY: help clean compile shell test eunit test-api test-all \
dialyzer xref cover docs release run stop logs
dialyzer xref cover docs release run stop logs verification-token
# Цвета для вывода (только для команд, где нужны)
GREEN := \033[0;32m
@@ -352,6 +352,12 @@ docker-swarm-shell:
# ============================================================================
# UTILITIES
# ============================================================================
# STAND=local|dev|ift|stage|calentiq (default local). Overrides: ADMIN_API_HOST, ENV_FILE, ADMIN_*/SMOKE_ADMIN_*
verification-token: ## Token: make verification-token EMAIL=u@x STAND=ift|stage|dev|local|calentiq
@test -n "$(EMAIL)" || (echo "Usage: make verification-token EMAIL=user@x STAND=ift" >&2; exit 1)
@STAND="$(STAND)" ADMIN_API_HOST="$(ADMIN_API_HOST)" ENV_FILE="$(ENV_FILE)" \
bash scripts/get-verification-token.sh "$(EMAIL)"
status: ## Проверить статус сервера
@echo "Проверка статуса сервера..."
@if curl -s http://localhost:8080/health > /dev/null 2>&1; then \