diff --git a/api/src/pool.rs b/api/src/pool.rs index 539259c..ab4c715 100644 --- a/api/src/pool.rs +++ b/api/src/pool.rs @@ -32,7 +32,7 @@ impl sea_orm_rocket::Pool for SeaOrmPool { async fn init(_figment: &Figment) -> Result { dotenv::dotenv().ok(); - let database_url = std::env::var("DATABASE_URL").unwrap(); + let database_url = std::env::var("PORTFOLIO_DATABASE_URL").unwrap(); let mut options: ConnectOptions = database_url.into(); options .max_connections(1024) diff --git a/core/src/services/portfolio_service.rs b/core/src/services/portfolio_service.rs index 556f31c..452dc19 100644 --- a/core/src/services/portfolio_service.rs +++ b/core/src/services/portfolio_service.rs @@ -127,7 +127,7 @@ impl PortfolioService { // Get root path or local directory fn get_file_store_path() -> PathBuf { dotenv::dotenv().ok(); - Path::new(&std::env::var("STORE_PATH").unwrap_or_else(|_| "".to_string())).to_path_buf() + Path::new(&std::env::var("PORTFOLIO_STORE_PATH").unwrap_or_else(|_| "".to_string())).to_path_buf() } /// Writes file to desired location