init
This commit is contained in:
parent
26f9cd42eb
commit
26f5ca2034
4
main.go
4
main.go
|
|
@ -13,8 +13,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
// Retrieve database connection information from environment variables
|
// Retrieve database connection information from environment variables
|
||||||
dsn := os.Getenv("DB_DSN")
|
dsn := os.Getenv("BAZA")
|
||||||
|
log.Println(dsn)
|
||||||
|
|
||||||
// Connect to the database
|
// Connect to the database
|
||||||
db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
|
db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue