Fix unnecessarily connecting to DB after multi-user config

pull/24/head
Matt Baer 6 years ago
parent ae019e4dc3
commit 1cb593fd8c
  1. 2
      app.go

@ -146,7 +146,7 @@ func Serve() {
log.Error("Unable to configure: %v", err)
os.Exit(1)
}
if d != nil {
if d.User != nil {
app.cfg = d.Config
connectToDatabase(app)
defer shutdown(app)

Loading…
Cancel
Save