summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index 0473231..3afdf49 100644
--- a/main.go
+++ b/main.go
@@ -3,13 +3,15 @@ package main
import (
"log"
+ "database/sql"
)
var config RuntimeConfig
+var db *sql.DB
func main() {
config = GetRuntimeConfig()
log.Printf("Starting ceres with config file '%s'\n", config.Path)
- db := InitDatabase()
- runServer(&db)
+ db = setupDatabase()
+ runServer()
}