This commit is contained in:
Aleksandr Popov
2023-06-26 08:59:00 +02:00
parent 171b640230
commit 348be92a45
@@ -19,7 +19,7 @@ namespace TURN.Services.Chess.DBModel
{
try
{
_ = Environment.GetEnvironmentVariable("DB") != null
_ = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DB"))
? optionsBuilder.UseNpgsql(Environment.GetEnvironmentVariable("DB"))
: optionsBuilder.UseNpgsql("Server=localhost;Port=5432;Database=TURNChess;UserId=postgres;" +
"Password=example;");