big getup for ubuntu setup, construct colour based skills

This commit is contained in:
ntr
2021-03-20 12:45:29 +10:00
parent 8cb7e0c419
commit 4c4304e60e
14 changed files with 140 additions and 46 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ pub fn setup_logger() -> Result<(), fern::InitError> {
pub fn start() {
#[cfg(unix)]
setup_logger().unwrap();
dotenv::from_path(Path::new("/etc/mnml/gs.conf")).ok();
dotenv::from_path(Path::new("/etc/mnml/gs.conf")).unwrap();
info!("starting server");
let pool = pg::create_pool();
+2
View File
@@ -66,6 +66,8 @@ pub fn create_pool() -> Pool<PostgresConnectionManager> {
let url = env::var("DATABASE_URL")
.expect("DATABASE_URL must be set");
println!("{:?}", url);
let manager = PostgresConnectionManager::new(url, TlsMode::None)
.expect("could not instantiate pg manager");