Remove dotenv
This commit is contained in:
parent
abc57d84cd
commit
dc0f2f5d0e
|
@ -1,6 +1,5 @@
|
|||
use chrono::{NaiveDateTime, TimeDelta, TimeZone, Datelike};
|
||||
use diesel::{dsl::sql, prelude::*, sql_types};
|
||||
use dotenvy::dotenv;
|
||||
use self::models::*;
|
||||
use std::net::SocketAddr;
|
||||
use std::env;
|
||||
|
@ -22,7 +21,6 @@ pub const MIGRATIONS: EmbeddedMigrations = embed_migrations!("migrations/");
|
|||
async fn main() {
|
||||
// initialize tracing
|
||||
tracing_subscriber::fmt::init();
|
||||
dotenv().ok();
|
||||
let db_url = env::var("DATABASE_URL").unwrap();
|
||||
let manager = deadpool_diesel::sqlite::Manager::new(db_url, deadpool_diesel::Runtime::Tokio1);
|
||||
let pool = deadpool_diesel::sqlite::Pool::builder(manager)
|
||||
|
|
Loading…
Reference in New Issue