Skip to content

Commit 1477293

Browse files
committed
backend image rebuild
1 parent 22fc92b commit 1477293

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

backend/api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ RUN apt-get update && apt-get install -y \
3434
WORKDIR /app
3535

3636
# Copy the migrations folder to the runtime stage
37-
COPY --from=builder /app/migrations ./migrations
37+
# COPY --from=builder /app/migrations ./migrations
3838

3939
# Copy the binary
4040
COPY --from=builder /app/target/release/api .

backend/api/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ async fn run_migrations(pool: &sqlx::PgPool) -> Result<(), sqlx::Error> {
3737
async fn main() {
3838
dotenv().ok();
3939

40+
4041
let database_url = std::env::var("DATABASE_URL").expect("DATABASE_URL must be set");
4142
let pool = match PgPoolOptions::new()
4243
.max_connections(10)
@@ -52,7 +53,7 @@ async fn main() {
5253
std::process::exit(1);
5354
}
5455
};
55-
56+
5657
let cors = CorsLayer::new()
5758
.allow_origin("http://localhost:3000".parse::<HeaderValue>().unwrap())
5859
.allow_methods([Method::GET, Method::POST, Method::PATCH, Method::DELETE])

0 commit comments

Comments
 (0)