mirror of
https://github.com/writeas/writefreely
synced 2025-01-22 15:49:52 +01:00
Fix unnecessarily connecting to DB after multi-user config
This commit is contained in:
parent
ae019e4dc3
commit
1cb593fd8c
2
app.go
2
app.go
@ -146,7 +146,7 @@ func Serve() {
|
|||||||
log.Error("Unable to configure: %v", err)
|
log.Error("Unable to configure: %v", err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
if d != nil {
|
if d.User != nil {
|
||||||
app.cfg = d.Config
|
app.cfg = d.Config
|
||||||
connectToDatabase(app)
|
connectToDatabase(app)
|
||||||
defer shutdown(app)
|
defer shutdown(app)
|
||||||
|
Loading…
Reference in New Issue
Block a user