Update db.go

This commit is contained in:
2026-05-04 14:46:53 +00:00
parent e1a58e92a8
commit 0efd999f28
+1 -1
View File
@@ -11,7 +11,7 @@ type Task struct {
} }
func InitDB() *gorm.DB { func InitDB() *gorm.DB {
dsn := "host=localhost user=postgres password=postgres dbname=go_postgres port=5432 sslmode=disable" dsn := "host=10.238.100.243:5432 user=postgres password=postgres dbname=go_postgres port=5432 sslmode=disable"
db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{}) db, err := gorm.Open(postgres.Open(dsn), &gorm.Config{})
if err != nil { if err != nil {
panic("Failed to connect to database") panic("Failed to connect to database")