fix: setup (start admin first and ensure setup done) (#126)

* start admin first and ensure setup done

* enable login again

* log oidc client_id in setup

* more logs for setup
This commit is contained in:
Livio Amstutz
2020-05-25 08:21:58 +02:00
committed by GitHub
parent e318139b37
commit a6aba86b54
4 changed files with 59 additions and 21 deletions

View File

@@ -16,7 +16,7 @@ type Config struct {
}
func Start(ctx context.Context, config Config, authZ auth.Config, systemDefaults sd.SystemDefaults) {
repo, err := eventsourcing.Start(config.Repository, systemDefaults)
repo, err := eventsourcing.Start(ctx, config.Repository, systemDefaults)
logging.Log("MAIN-9uBxp").OnError(err).Panic("unable to start app")
api.Start(ctx, config.API, authZ, repo)