docker push command, config logging
This commit is contained in:
parent
cb1af81da7
commit
4f21fd8aa8
5
Makefile
5
Makefile
|
@ -1,3 +1,6 @@
|
|||
|
||||
run:
|
||||
sync-run:
|
||||
cd sync-service && PLANNER_DB_PATH=test.db PLANNER_PORT=8092 PLANNER_API_KEY=testKey go run .
|
||||
|
||||
sync-build-and-push:
|
||||
cd sync-service && docker build . -t codeberg.org/ewintr/syncservice && docker push codeberg.org/ewintr/syncservice
|
||||
|
|
|
@ -36,6 +36,13 @@ func main() {
|
|||
}
|
||||
|
||||
logger := slog.New(slog.NewJSONHandler(os.Stdout, nil))
|
||||
logger.Info("configuration", "configuration", map[string]string{
|
||||
"dbPath": dbPath,
|
||||
"port": fmt.Sprintf("%d", port),
|
||||
"apiKey": "***",
|
||||
"crtPath": crtPath,
|
||||
"keyPath": keyPath,
|
||||
})
|
||||
|
||||
address := fmt.Sprintf(":%d", port)
|
||||
srv := NewServer(repo, apiKey, logger)
|
||||
|
|
Loading…
Reference in New Issue