Fix product performance grouped JSON build
This commit is contained in:
+10
@@ -1390,6 +1390,7 @@ func main() {
|
||||
// (e.g. SSH-tunnel PostgreSQL on 127.0.0.1:15432).
|
||||
if runtime.GOOS == "windows" {
|
||||
_ = godotenv.Overload(".env.local")
|
||||
_ = godotenv.Overload(".env.argebaggi.local")
|
||||
}
|
||||
|
||||
jwtSecret := os.Getenv("JWT_SECRET")
|
||||
@@ -1417,6 +1418,15 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
if err := db.ConnectMSSQLArgeBaggi(); err != nil {
|
||||
if strings.Contains(err.Error(), "ARGEBAGGI_MSSQL_CONN tanimli degil") {
|
||||
log.Println("ArgeBAGGI DB baglantisi atlandi: ARGEBAGGI_MSSQL_CONN tanimli degil")
|
||||
} else {
|
||||
// This source enriches one screen; a temporary outage must not stop
|
||||
// the whole application from starting.
|
||||
log.Println("ArgeBAGGI DB baglantisi basarisiz:", err)
|
||||
}
|
||||
}
|
||||
|
||||
pgDB, err := db.ConnectPostgres()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user