mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 00:55:32 +00:00
BUGFIX: cloniung on startup
This commit is contained in:
13
app/kgpz.go
13
app/kgpz.go
@@ -28,7 +28,18 @@ type KGPZ struct {
|
||||
}
|
||||
|
||||
func (k *KGPZ) Init() {
|
||||
go k.initRepo()
|
||||
if k.Config.Debug {
|
||||
// NOTE: validity checks for poor people, speeding up dev mode:
|
||||
if _, err := os.Stat(k.Config.FolderPath); err != nil {
|
||||
k.initRepo()
|
||||
} else {
|
||||
go k.initRepo()
|
||||
}
|
||||
k.Serialize()
|
||||
return
|
||||
}
|
||||
|
||||
k.initRepo()
|
||||
k.Serialize()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user