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:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -26,6 +26,10 @@ coverage
|
||||
*.sln
|
||||
*.sw?
|
||||
*.tsbuildinfo
|
||||
/bin/
|
||||
/config/config.yaml
|
||||
/config/config.yml
|
||||
config.yaml
|
||||
config.yml
|
||||
example.config.yml
|
||||
example.config.yaml
|
||||
main
|
||||
@@ -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)
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
app_name: 'APP'
|
||||
nats:
|
||||
host: ''
|
||||
token: ''
|
||||
database:
|
||||
host: ''
|
||||
port: 5432
|
||||
user: ''
|
||||
password: ''
|
||||
name: 'tracker'
|
||||
Reference in New Issue
Block a user