1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-25 23:02:22 +02:00

сделал packages.jpg

This commit is contained in:
Nikitin Aleksandr
2023-09-13 13:48:19 +03:00
parent d86504a070
commit 4ee2118a36
11 changed files with 4241 additions and 32 deletions

View File

@@ -260,15 +260,15 @@ func FillSettings() {
Settings.DB_USER = os.Getenv("DB_USER")
Settings.DB_PASSWORD = os.Getenv("DB_PASSWORD")
// заполним из переменных оуружения как у Нечаева
if Settings.DB_HOST == "" {
Settings.DB_HOST = os.Getenv("STORE_HOST")
Settings.DB_PORT = os.Getenv("STORE_PORT")
Settings.DB_NAME = os.Getenv("STORE_NAME")
Settings.DB_SCHEMA = os.Getenv("STORE_SCHEME")
Settings.DB_USER = os.Getenv("STORE_LOGIN")
Settings.DB_PASSWORD = os.Getenv("STORE_PASSWORD")
}
//// заполним из переменных оуружения как у Нечаева
//if Settings.DB_HOST == "" {
// Settings.DB_HOST = os.Getenv("STORE_HOST")
// Settings.DB_PORT = os.Getenv("STORE_PORT")
// Settings.DB_NAME = os.Getenv("STORE_NAME")
// Settings.DB_SCHEMA = os.Getenv("STORE_SCHEME")
// Settings.DB_USER = os.Getenv("STORE_LOGIN")
// Settings.DB_PASSWORD = os.Getenv("STORE_PASSWORD")
//}
if Settings.DB_HOST == "" {
log.Panicln("Need fill DB_HOST ! in os.ENV ")