From 0bcf6055394f70c4975734bbceae405719493d1e Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 14 Nov 2021 11:41:11 +0200 Subject: [PATCH] .AddEnvironmentVariables() --- src/api/NetworkResurrector.Api/Program.cs | 1 + src/server/NetworkResurrector.Server/Program.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/api/NetworkResurrector.Api/Program.cs b/src/api/NetworkResurrector.Api/Program.cs index b3a57ca..1929c94 100644 --- a/src/api/NetworkResurrector.Api/Program.cs +++ b/src/api/NetworkResurrector.Api/Program.cs @@ -27,6 +27,7 @@ namespace NetworkResurrector.Api var configuration = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true) + .AddEnvironmentVariables() .Build(); var connectionString = configuration.GetConnectionString("DatabaseConnection"); diff --git a/src/server/NetworkResurrector.Server/Program.cs b/src/server/NetworkResurrector.Server/Program.cs index 61f5775..5dbd226 100644 --- a/src/server/NetworkResurrector.Server/Program.cs +++ b/src/server/NetworkResurrector.Server/Program.cs @@ -27,6 +27,7 @@ namespace NetworkResurrector.Server var configuration = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true) + .AddEnvironmentVariables() .Build(); var connectionString = configuration.GetConnectionString("DatabaseConnection");