log if env is being loaded
This commit is contained in:
parent
aad41ab47c
commit
7c4a6b030d
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ type TemplateRenderer struct {
|
|||
func main() {
|
||||
// Load connection string from .env file
|
||||
if os.Getenv("GO_ENV") != "production" {
|
||||
fmt.Println("Loading env...")
|
||||
err := godotenv.Load()
|
||||
if err != nil {
|
||||
log.Fatal("failed to load env", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue