mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
update dotenv::dotenv references
This commit is contained in:
@ -18,7 +18,7 @@ mod utils;
|
||||
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
dotenv::dotenv().ok();
|
||||
dotenvy::dotenv().ok();
|
||||
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
|
||||
|
||||
let database_url = std::env::var("DATABASE_URL").expect("DATABASE_URL must be set");
|
||||
|
Reference in New Issue
Block a user