docker ready
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1 +1 @@
|
|||||||
config/conf.json
|
.env
|
||||||
@@ -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"
|
||||||
},
|
},
|
||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user