Skip to content

Commit

Permalink
fix: move launch to after key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdmike committed Nov 6, 2024
1 parent e9d5135 commit 935bccd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func main() {
log.Fatalf("App init error: %s", err)
}

handleEncryptionKey(cfg)

if os.Getenv("GIN_MODE") != "debug" {
go func() {
browserError := openBrowser("http://localhost:"+cfg.HTTP.Port, runtime.GOOS)
Expand All @@ -40,9 +42,8 @@ func main() {
}()
}

handleEncryptionKey(cfg)

runAppFunc(cfg)

}

func handleEncryptionKey(cfg *config.Config) {
Expand Down

0 comments on commit 935bccd

Please sign in to comment.