Skip to content

Commit

Permalink
update the env
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrest1 committed Feb 6, 2024
1 parent f7930a6 commit 8a235e9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,18 @@ import (
"github.com/dkrest1/task-manager/controllers"
"github.com/dkrest1/task-manager/routes"
_ "github.com/dkrest1/task-manager/docs"
_ "github.com/joho/godotenv"
"github.com/joho/godotenv"
"github.com/rs/cors"
)

func main() {

// Init DB
// Load env
if err := godotenv.Load(); err != nil {
log.Fatal("Error loading .env file:", err)
}

// init DB
configs.InitDB()

// Controllers
Expand Down

0 comments on commit 8a235e9

Please sign in to comment.