feat(api): завершение миграции на Fastify — sync, scheduler, backup
Docker / build (push) Has been cancelled
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:
+3
-3
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user