mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 04:26:43 -06:00
feat: add PostgreSQL database integration for projects
- Add SQLx with Postgres support and migration system - Create projects table with status enum and auto-updated timestamps - Implement database queries and API response conversion layer - Add Justfile commands for database management and seeding - Integrate health checks for both Bun and database connectivity
This commit is contained in:
+6
-1
@@ -55,8 +55,13 @@ RUN cargo chef cook --release --recipe-path recipe.json
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY src/ ./src/
|
||||
|
||||
# Copy frontend client assets for embedding
|
||||
# Copy SQLx offline cache and migrations for compile-time macros
|
||||
COPY .sqlx/ ./.sqlx/
|
||||
COPY migrations/ ./migrations/
|
||||
|
||||
# Copy frontend assets for embedding
|
||||
COPY --from=frontend /build/build/client ./web/build/client
|
||||
COPY --from=frontend /build/build/prerendered ./web/build/prerendered
|
||||
|
||||
# Build with real assets
|
||||
RUN cargo build --release && \
|
||||
|
||||
Reference in New Issue
Block a user