This commit is contained in:
ntr
2019-07-15 20:38:04 +10:00
parent 4c5eca0e30
commit f752df4bca
10 changed files with 176 additions and 53 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ mod ws;
use std::thread::{sleep, spawn};
use std::time::{Duration};
use dotenv::dotenv;
use std::path::{Path};
use pubsub::pg_listen;
use warden::warden;
@@ -78,7 +78,7 @@ fn setup_logger() -> Result<(), fern::InitError> {
}
fn main() {
dotenv().ok();
dotenv::from_path(Path::new("/etc/mnml/server.conf")).ok();
setup_logger().unwrap();
let pool = pg::create_pool();