This commit is contained in:
1 parent
171b640230
commit
348be92a45
1 file changed
+1
-1
@@ -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