Change where backend is looking for the migrations
All checks were successful
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Has been skipped
Podman Rootless Demo / build-backend (push) Successful in 5m16s
Podman Rootless Demo / build-frontend (push) Has been skipped
Podman Rootless Demo / deploy-prod (push) Successful in 58s
All checks were successful
Podman Rootless Demo / test-backend (push) Has been skipped
Podman Rootless Demo / test-frontend (push) Has been skipped
Podman Rootless Demo / build-backend (push) Successful in 5m16s
Podman Rootless Demo / build-frontend (push) Has been skipped
Podman Rootless Demo / deploy-prod (push) Successful in 58s
This commit is contained in:
parent
54245f1c3a
commit
69ebda5e3d
2 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ WORKDIR /app
|
||||||
|
|
||||||
# Copy Cargo files and migrations
|
# Copy Cargo files and migrations
|
||||||
COPY Cargo.toml Cargo.lock ./
|
COPY Cargo.toml Cargo.lock ./
|
||||||
COPY crates/ ./crates/
|
|
||||||
COPY migrations/ ./migrations/
|
COPY migrations/ ./migrations/
|
||||||
|
COPY crates/ ./crates/
|
||||||
|
|
||||||
# Build dependencies first (for better caching)
|
# Build dependencies first (for better caching)
|
||||||
RUN cargo build --release --bin sharenet-api-postgres
|
RUN cargo build --release --bin sharenet-api-postgres
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ async fn main() -> anyhow::Result<()> {
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
// Run database migrations
|
// Run database migrations
|
||||||
sqlx::migrate!("../../../migrations")
|
sqlx::migrate!("../../migrations")
|
||||||
.run(&pool)
|
.run(&pool)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue