only run migrations on prod instances
This commit is contained in:
parent
c998d2566e
commit
d49cc87b8c
@ -66,11 +66,11 @@ async fn main() -> std::io::Result<()> {
|
||||
"Starting Labrinth on {}",
|
||||
dotenvy::var("BIND_ADDR").unwrap()
|
||||
);
|
||||
}
|
||||
|
||||
database::check_for_migrations()
|
||||
.await
|
||||
.expect("An error occurred while running migrations.");
|
||||
}
|
||||
|
||||
// Database Connector
|
||||
let pool = database::connect()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user