docker ready

This commit is contained in:
Peder Vatn Austad
2024-12-29 14:06:47 +01:00
parent 23a29be059
commit 10b50a9f66
3 changed files with 4 additions and 5 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
config/conf.json .env

View File

@@ -1,9 +1,9 @@
{ {
"database": { "database": {
"host": "binders.net", "host": "localhost",
"port": "5432", "port": "5432",
"user": "ti1", "user": "ti1",
"password": "W7zZTAkVeWs54zQGNka2KgZpusEa68CG", "password": "",
"dbname": "ti1", "dbname": "ti1",
"sslmode": "disable" "sslmode": "disable"
}, },

View File

@@ -3,7 +3,6 @@ package config
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"log"
"os" "os"
) )
@@ -54,7 +53,7 @@ func LoadConfig(file string) (Config, error) {
if temp := os.Getenv("TEMP"); temp != "" { if temp := os.Getenv("TEMP"); temp != "" {
config.Temp = temp config.Temp = temp
} }
log.Println("Temp value:", config.Temp) //log.Println("Temp value:", config.Temp)
return config, nil return config, nil
} }