Remove env vars from code
This commit is contained in:
parent
28d35026ef
commit
41fe733be5
@ -29,7 +29,6 @@ impl DbExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn build_pool() -> DbPool {
|
pub fn build_pool() -> DbPool {
|
||||||
std::env::set_var("RUST_LOG", "actix_web=debug,diesel=debug");
|
|
||||||
dotenv::dotenv().ok();
|
dotenv::dotenv().ok();
|
||||||
|
|
||||||
let database_url = std::env::var("DATABASE_URL").expect("DATABASE_URL");
|
let database_url = std::env::var("DATABASE_URL").expect("DATABASE_URL");
|
||||||
|
@ -13,7 +13,6 @@ pub mod schema;
|
|||||||
|
|
||||||
#[actix_rt::main]
|
#[actix_rt::main]
|
||||||
async fn main() -> Result<(), String> {
|
async fn main() -> Result<(), String> {
|
||||||
std::env::set_var("RUST_LOG", "actix_web=debug,diesel=debug");
|
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
dotenv::dotenv().ok();
|
dotenv::dotenv().ok();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user