Skip to content

Commit d49cc87

Browse files
committed
only run migrations on prod instances
1 parent c998d25 commit d49cc87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/labrinth/src/main.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ async fn main() -> std::io::Result<()> {
6666
"Starting Labrinth on {}",
6767
dotenvy::var("BIND_ADDR").unwrap()
6868
);
69-
}
7069

71-
database::check_for_migrations()
72-
.await
73-
.expect("An error occurred while running migrations.");
70+
database::check_for_migrations()
71+
.await
72+
.expect("An error occurred while running migrations.");
73+
}
7474

7575
// Database Connector
7676
let pool = database::connect()

0 commit comments

Comments
 (0)