Skip to content

Commit

Permalink
Load .env only production
Browse files Browse the repository at this point in the history
  • Loading branch information
Mupati committed Aug 12, 2021
1 parent 5ac45b8 commit d6624d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ var appID, appCertificate string

func main() {

ENV := os.Getenv("ENV")
if ENV == "" {
ENV := os.Getenv("APP_ENV")
if ENV != "production" {
err := godotenv.Load()

if err != nil {
Expand Down

0 comments on commit d6624d6

Please sign in to comment.