1 Локальная-разработка
Игорь Мамаев edited this page 2026-10-29 00:28:37 +00:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Локальная разработка

docker compose -f dev/compose.yaml up -d      # Postgres 18 + PgBouncer (transaction, 20 соединений) на 127.0.0.1:6432
export HALLOWEEN_DB_HOST=127.0.0.1 HALLOWEEN_DB_PORT=6432 HALLOWEEN_DB_SSLMODE=disable HALLOWEEN_OWNER_PASSWORD=halloween
bash ci/db.sh setup                           # схема и данные, ~2 минуты (psql >= 14)
bash ci/db.sh reset                           # перед каждым прогоном тестов, ~3 секунды

Запустите dist/start.sh с окружением, подставив postgres://halloween_app:halloween@127.0.0.1:6432/halloween?sslmode=disable и 127.0.0.1:8080, затем:

bash test/test.sh http://127.0.0.1:8080       # curl, jq, openssl
k6 run -e BASE_URL=http://127.0.0.1:8080 -e VUS=500 bench/load.js