Skip to content

Commit

Permalink
chore: Update environment variable check for devdeployed in main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
waveyboym committed Jun 27, 2024
1 parent 1344309 commit 1d45b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion occupi-backend/cmd/occupi-backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
logrus.Infof("Server running with key file: %s", keyFile)

// Listening on the port with TLS if env is prod or dev.deployed
if configs.GetEnv() == "prod" || configs.GetEnv() == "dev.deployed" {
if configs.GetEnv() == "prod" || configs.GetEnv() == "devdeployed" {
if err := ginRouter.RunTLS(":"+configs.GetPort(), certFile, keyFile); err != nil {
logrus.Fatal("Failed to run server: ", err)
}
Expand Down

0 comments on commit 1d45b27

Please sign in to comment.