From 44ec2c3064b6888835e90dbd2740a6fe10b05794 Mon Sep 17 00:00:00 2001 From: Alexander Simonov Date: Sun, 12 Jul 2015 01:07:14 +0300 Subject: [PATCH] Fix database connection --- cmd/drone-server/drone.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/drone-server/drone.go b/cmd/drone-server/drone.go index a8099ff14..9f34453d5 100644 --- a/cmd/drone-server/drone.go +++ b/cmd/drone-server/drone.go @@ -4,7 +4,6 @@ import ( "flag" "html/template" "net/http" - "os" "github.com/drone/drone/Godeps/_workspace/src/github.com/gin-gonic/gin" @@ -45,7 +44,7 @@ func main() { panic(err) } - store, err := store.New(os.Getenv("DATABASE")) + store, err := store.New(settings.Database.Driver + "://" + settings.Database.Datasource) if err != nil { panic(err) }