setup docker volumes & versions

This commit is contained in:
Hayden 2022-09-13 21:15:01 -08:00
parent 0b92d57b85
commit 1dc9d6396a
7 changed files with 35 additions and 16 deletions

View file

@ -2,6 +2,7 @@ package main
import (
"context"
"os"
"time"
"github.com/hay-kot/content/backend/app/api/docs"
@ -31,10 +32,16 @@ var (
// @name Authorization
// @description "Type 'Bearer TOKEN' to correctly set the API Key"
func main() {
path := ""
if len(os.Args) > 1 {
path = os.Args[1]
}
cfgFile := "config.yml"
if path == "" {
log.Warn().Msg("No configuration detected, using defaults")
}
cfg, err := config.NewConfig(cfgFile)
cfg, err := config.NewConfig(path)
if err != nil {
panic(err)
}

View file

@ -14,5 +14,5 @@ type ApiSummary struct {
type Build struct {
Version string `json:"version"`
Commit string `json:"commit"`
BuildTime string `json:"build_time"`
BuildTime string `json:"buildTime"`
}