Разбить API на слои, комментарии на русском
Skeleton contracts / contracts (pull_request) Canceled after 0s

routes -> http/auth -> repositories -> infra; поведение не изменилось, smoke, persistence и тесты уровня 4 перепрогнаны.
This commit is contained in:
celis
2026-10-29 22:25:01 +03:00
parent cac37bddec
commit b79be9b0eb
35 changed files with 729 additions and 486 deletions
+2 -2
View File
@@ -17,5 +17,5 @@ USER node
EXPOSE 8080
HEALTHCHECK --interval=5s --timeout=3s --retries=5 \
CMD ["node", "-e", "fetch('http://127.0.0.1:8080/health/ready').then(r => process.exit(r.ok ? 0 : 1), () => process.exit(1))"]
# exec form: node is PID 1 and handles SIGTERM itself (graceful close of HTTP, pool and Valkey)
CMD ["node", "dist/app.js"]
# exec-форма: node — PID 1 и сам обрабатывает SIGTERM (закрывает HTTP, пул и Valkey)
CMD ["node", "dist/main.js"]