diff --git a/db/db.go b/db/db.go index 2ef048b..d830686 100644 --- a/db/db.go +++ b/db/db.go @@ -35,7 +35,7 @@ func NewConnector() *Connector { func NewConfig() *ConnectionConfig { var host, port string - connectionParts := strings.Split(":", os.Getenv("DB_CONNECTION")) + connectionParts := strings.Split(os.Getenv("DB_CONNECTION"), ":") if len(connectionParts) == 2 { host, port = connectionParts[0], connectionParts[1] }