feat(api): завершение миграции на Fastify — sync, scheduler, backup
Docker / build (push) Has been cancelled

Портированы BILLmanager sync/test/balance, планировщик и Telegram,
импорт/экспорт бэкапов и migrate API; Docker по умолчанию на fastify.
Добавлен .understand-anything/ в gitignore, исправлен path codegraph в MCP.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-06-27 23:22:59 +07:00
co-authored by Cursor
parent 836c8a2936
commit 0de0538218
24 changed files with 2192 additions and 46 deletions
+3 -3
View File
@@ -37,9 +37,9 @@ RUN apk add --no-cache nodejs
WORKDIR /app
ENV NODE_ENV=production \
PORT=3001 \
RUNTIME=express
RUNTIME=fastify
# Single layer for app code + pruned prod node_modules (symlinks resolved by COPY)
COPY --from=build /app ./
EXPOSE 3001
# RUNTIME=express (default, legacy) | RUNTIME=fastify (new stack)
CMD ["sh", "-c", "if [ \"$RUNTIME\" = \"fastify\" ]; then node apps/api/dist/index.js; else node apps/api/index.js; fi"]
# RUNTIME=express — legacy fallback (apps/api/index.js)
CMD ["sh", "-c", "if [ \"$RUNTIME\" = \"express\" ]; then node apps/api/index.js; else node apps/api/dist/index.js; fi"]