Skip to content

Commit

Permalink
fix: 修复无法加载环境相关的文件问题
Browse files Browse the repository at this point in the history
  • Loading branch information
turbinejs committed Sep 7, 2022
1 parent c88b667 commit 1411203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ func Setup(root ...string) {
AppEnv = String("APP_ENV", "release")
if len(AppEnv) > 0 {
currEnvFile := ".env." + strings.ToLower(AppEnv)
godotenv.Overload(RootPath + currEnvFile)
godotenv.Overload(RootPath + "/" + currEnvFile)
}
}

0 comments on commit 1411203

Please sign in to comment.