extracts server in its own module
This commit is contained in:
@@ -48,7 +48,7 @@ impl Player {
|
||||
|
||||
|
||||
pub fn create_pool() -> Pool {
|
||||
dotenv::dotenv().ok();
|
||||
dbg!(dotenv::dotenv().ok());
|
||||
let connspec = std::env::var("DATABASE_URL").expect("DATABASE_URL");
|
||||
let manager = ConnectionManager::<DbConnection>::new(connspec);
|
||||
r2d2::Pool::builder()
|
||||
|
||||
Reference in New Issue
Block a user