big getup for ubuntu setup, construct colour based skills
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ chrono = { version = "0.4", features = ["serde"] }
|
||||
bcrypt = "0.2"
|
||||
|
||||
postgres = { version = "0.15", features = ["with-uuid", "with-chrono"] }
|
||||
r2d2 = "*"
|
||||
r2d2_postgres = "*"
|
||||
r2d2 = "0.8"
|
||||
r2d2_postgres = "0.14"
|
||||
fallible-iterator = "0.1"
|
||||
|
||||
failure = "0.1"
|
||||
|
||||
+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