mv config to root
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2m41s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 2m41s
This commit is contained in:
@@ -3,6 +3,8 @@ package main
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/nats-io/nats.go"
|
||||
"madsky.ru/go-tracker/internal/broker"
|
||||
"madsky.ru/go-tracker/internal/config"
|
||||
@@ -10,11 +12,10 @@ import (
|
||||
"madsky.ru/go-tracker/internal/logger"
|
||||
"madsky.ru/go-tracker/internal/server"
|
||||
"madsky.ru/go-tracker/internal/storage"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
cfg := config.MustLoad("./config/config.yaml")
|
||||
cfg := config.MustLoad("./config.yaml")
|
||||
|
||||
log := logger.NewLogger()
|
||||
dsn := getDSN(cfg.Database.Host, cfg.Database.Port, cfg.Database.User, cfg.Database.Password, cfg.Database.Name)
|
||||
|
||||
Reference in New Issue
Block a user