Docker changes #31

Merged
phoenix merged 19 commits from docker_changes into devel 2025-04-13 18:38:40 +00:00
Showing only changes of commit 5c4cdb8a72 - Show all commits

View File

@@ -36,8 +36,13 @@ pub mod db {
async fn get_db_url() -> String {
#[cfg(debug_assertions)] // Example: Only load .env in debug builds
dotenvy::dotenv().ok();
env::var(keys::DBURL).expect(keys::error::ERROR)
match dotenvy::from_filename("auth_db.env") {
Ok(_) => env::var(keys::DBURL).expect(keys::error::ERROR),
Err(err) => {
eprintln!("Error loading db env files {:?}", err);
String::new()
}
}
}
pub async fn migrations(pool: &sqlx::PgPool) {