big getup for ubuntu setup, construct colour based skills
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user