diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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() } |