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
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
/bin/
|
|
||||||
/config/config.yaml
|
/config/config.yaml
|
||||||
|
/config/config.yml
|
||||||
|
config.yaml
|
||||||
|
config.yml
|
||||||
|
example.config.yml
|
||||||
|
example.config.yaml
|
||||||
main
|
main
|
||||||
@@ -3,6 +3,8 @@ package main
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/nats-io/nats.go"
|
"github.com/nats-io/nats.go"
|
||||||
"madsky.ru/go-tracker/internal/broker"
|
"madsky.ru/go-tracker/internal/broker"
|
||||||
"madsky.ru/go-tracker/internal/config"
|
"madsky.ru/go-tracker/internal/config"
|
||||||
@@ -10,11 +12,10 @@ import (
|
|||||||
"madsky.ru/go-tracker/internal/logger"
|
"madsky.ru/go-tracker/internal/logger"
|
||||||
"madsky.ru/go-tracker/internal/server"
|
"madsky.ru/go-tracker/internal/server"
|
||||||
"madsky.ru/go-tracker/internal/storage"
|
"madsky.ru/go-tracker/internal/storage"
|
||||||
"os"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cfg := config.MustLoad("./config/config.yaml")
|
cfg := config.MustLoad("./config.yaml")
|
||||||
|
|
||||||
log := logger.NewLogger()
|
log := logger.NewLogger()
|
||||||
dsn := getDSN(cfg.Database.Host, cfg.Database.Port, cfg.Database.User, cfg.Database.Password, cfg.Database.Name)
|
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