db: drizzle schema matching spec 02, initial migrations, settings service
Migration 0000 enables citext; 0001 creates all 39 tables. DB tests use a throwaway database per file (TEST_DATABASE_URL, derived from .env in dev, a postgres service in CI). Decision 0002: pg driver and @fastify/cookie. Task: M1-T1
This commit is contained in:
1 parent
63a03b4185
commit
15b8a20751
29 files changed
+6649
-25
No files matched your search
@@ -160,6 +160,8 @@ AstDB keys (family/key). This list is complete; do not add keys without updating
|
||||
| WebSocket (api) | @fastify/websocket | latest |
|
||||
| Multipart uploads | @fastify/multipart | latest |
|
||||
| Rate limiting | @fastify/rate-limit | latest |
|
||||
| Cookies | @fastify/cookie | latest (decisions/0002) |
|
||||
| PostgreSQL driver | pg | latest (decisions/0002) |
|
||||
| QR codes | qrcode | latest |
|
||||
| Logging | pino | latest |
|
||||
| Tests | vitest | latest |
|
||||
|
||||
@@ -639,7 +639,8 @@ COPY --from=build /out/package.json ./package.json
|
||||
COPY --from=build /out/node_modules ./node_modules
|
||||
COPY --from=build /src/apps/api/dist ./dist
|
||||
COPY --from=build /src/apps/web/dist ./public
|
||||
# ponytail: migrations (M1) and provisioning templates (M10) get their COPY lines when they exist.
|
||||
COPY --from=build /src/apps/api/src/db/migrations ./dist/db/migrations
|
||||
# ponytail: provisioning templates (M10) get their COPY line when they exist.
|
||||
ENV NODE_ENV=production
|
||||
ENTRYPOINT ["/usr/bin/tini","--"]
|
||||
CMD ["node","dist/index.js"]
|
||||
|
||||
Reference in new issue
Block a user