extern crate dotenv;
extern crate schani_store;

fn main() {
    if dotenv::dotenv().is_err() {
        println!("No .env found, relying solely on env vars.");
    }

    let app = schani_store::StoreWebApp::new("http://127.0.0.1:9100".parse().unwrap());
    app.run();
}

extern crate dotenv;
extern crate schani_store;

fn main() {
    dotenv::dotenv().unwrap();

    let app = schani_store::StoreWebApp::new("http://127.0.0.1:9100".parse().unwrap());
    app.run();
}

--- 
+++ 
@@ -2,7 +2,9 @@
 extern crate schani_store;
 
 fn main() {
-    dotenv::dotenv().unwrap();
+    if dotenv::dotenv().is_err() {
+        println!("No .env found, relying solely on env vars.");
+    }
 
     let app = schani_store::StoreWebApp::new("http://127.0.0.1:9100".parse().unwrap());
     app.run();
Fix panic if .env is missing

Signed-off-by: Christoph Wurst <7abde52c298496fa169fb750f91f213a282142af@winzerhof-wurst.at>
