mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 14:22:33 +03:00
prod debug
This commit is contained in:
parent
af1283256c
commit
0717a89bc7
7
main.go
7
main.go
@ -9,15 +9,16 @@ import (
|
|||||||
|
|
||||||
Config "micrach/config"
|
Config "micrach/config"
|
||||||
Controllers "micrach/controllers"
|
Controllers "micrach/controllers"
|
||||||
Db "micrach/db"
|
|
||||||
|
// Db "micrach/db"
|
||||||
Repositories "micrach/repositories"
|
Repositories "micrach/repositories"
|
||||||
// Utils "micrach/utils"
|
// Utils "micrach/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
Config.Init()
|
Config.Init()
|
||||||
Db.Init()
|
// Db.Init()
|
||||||
defer Db.Pool.Close()
|
// defer Db.Pool.Close()
|
||||||
gin.SetMode(Config.App.Env)
|
gin.SetMode(Config.App.Env)
|
||||||
Repositories.Seed()
|
Repositories.Seed()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user