package main

import (
	"github.com/asdine/storm"
	"github.com/labstack/echo"

	"github.com/genesor/cochonou/http"
	"github.com/genesor/cochonou/os"
)

func main() {
	e := echo.New()

	db, err := storm.Open(os.GetEnvWithDefault("BOLT_DB_PATH", "cochonou_dev.db"))
	if err != nil {
		panic(err.Error())
	}

	defer db.Close()

	helloHandler := http.NewHelloHandler()
	e.GET("/", helloHandler.HandleHello)
	e.Logger.Fatal(e.Start(os.GetEnvWithDefault("HTTP_ADDR", ":9494")))
}

package main

import (
	"github.com/asdine/storm"
	"github.com/labstack/echo"

	"github.com/genesor/cochonou/http"
	"github.com/genesor/cochonou/os"
)

func main() {
	e := echo.New()

	db, err := storm.Open(os.GetEnvWithDefault("COCH_BOLT_DB_PATH", "cochonou_dev.db"))
	if err != nil {
		panic(err.Error())
	}

	defer db.Close()

	helloHandler := http.NewHelloHandler()
	e.GET("/", helloHandler.HandleHello)
	e.Logger.Fatal(e.Start(os.GetEnvWithDefault("COCH_HTTP_ADDR", ":9494")))
}

--- 
+++ 
@@ -11,7 +11,7 @@
 func main() {
 	e := echo.New()
 
-	db, err := storm.Open(os.GetEnvWithDefault("COCH_BOLT_DB_PATH", "cochonou_dev.db"))
+	db, err := storm.Open(os.GetEnvWithDefault("BOLT_DB_PATH", "cochonou_dev.db"))
 	if err != nil {
 		panic(err.Error())
 	}
@@ -20,5 +20,5 @@
 
 	helloHandler := http.NewHelloHandler()
 	e.GET("/", helloHandler.HandleHello)
-	e.Logger.Fatal(e.Start(os.GetEnvWithDefault("COCH_HTTP_ADDR", ":9494")))
+	e.Logger.Fatal(e.Start(os.GetEnvWithDefault("HTTP_ADDR", ":9494")))
 }
Remove COCH prefix from env vars
