fix: load config before db
This commit is contained in:
parent
9a4c3d5d13
commit
58165e01af
6
main.go
6
main.go
|
@ -16,12 +16,12 @@ import (
|
||||||
var embedFrontend embed.FS
|
var embedFrontend embed.FS
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
// Initialize the database connection
|
|
||||||
db.Init()
|
|
||||||
|
|
||||||
// Initialize the configuration settings
|
// Initialize the configuration settings
|
||||||
config.Init()
|
config.Init()
|
||||||
|
|
||||||
|
// Initialize the database connection
|
||||||
|
db.Init()
|
||||||
|
|
||||||
// Create a new Iris app instance
|
// Create a new Iris app instance
|
||||||
app := iris.New()
|
app := iris.New()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue