Skip to content

Commit

Permalink
Production mode through ENVIRONMENT var
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitbbhayani committed Dec 11, 2024
1 parent 07458b8 commit 795f105
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ import (
)

func main() {
// Set Gin to release mode for production
if os.Getenv("ENVIRONMENT") == "production" {
gin.SetMode(gin.ReleaseMode)
}

configValue := config.LoadConfig()
diceDBAdminClient, err := db.InitDiceClient(configValue, true)
if err != nil {
Expand Down

0 comments on commit 795f105

Please sign in to comment.