From e769ff74200aebbd162c97d52c9fdb751d7debef Mon Sep 17 00:00:00 2001 From: Matej Hires Date: Mon, 23 Oct 2023 19:47:46 +0200 Subject: [PATCH] Changed connection string --- AutomatedTestingApp/AutomatedTestingApp/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutomatedTestingApp/AutomatedTestingApp/Program.cs b/AutomatedTestingApp/AutomatedTestingApp/Program.cs index bb3f0e7..39bef2f 100644 --- a/AutomatedTestingApp/AutomatedTestingApp/Program.cs +++ b/AutomatedTestingApp/AutomatedTestingApp/Program.cs @@ -8,7 +8,7 @@ // Add services to the container. builder.Services.AddControllersWithViews(); -var connectionString = builder.Configuration.GetConnectionString("DefaultConnection") ?? +var connectionString = Environment.GetEnvironmentVariable("CUSTOMCONNSTR_SQLITE") ?? throw new InvalidOperationException("Connection string 'DefaultConnection' not found."); builder.Services.AddDbContext(options => options.UseSqlite(connectionString));