This commit is contained in:
@@ -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;");
|
||||
|
||||
Reference in New Issue
Block a user