add makefile support

This commit is contained in:
2024-08-04 16:25:16 +02:00
parent d1ec41cc47
commit 79215d5fe1
3 changed files with 69 additions and 3 deletions

View File

@ -64,6 +64,12 @@ func main() {
"development",
"Application environment {development|production}",
)
flag.StringVar(
&cfg.db.dsn,
"dsn",
"root@tcp(localhost:6379)/widgets?parseTime=true&tls=false",
"Application environment {development|production}",
)
flag.StringVar(&cfg.api, "api", "http://localhost:4001", "URL to api")
flag.Parse()