Fixed a bug with config (#1996)
This commit is contained in:
parent
161120e39a
commit
90c44f6d65
1 changed files with 2 additions and 2 deletions
|
@ -165,9 +165,9 @@ public class Program
|
|||
|
||||
var env = hostingContext.HostingEnvironment;
|
||||
|
||||
config.AddJsonFile("config/appsettings.json", optional: false, reloadOnChange: false)
|
||||
config.AddJsonFile("config/appsettings.json", optional: true, reloadOnChange: false)
|
||||
.AddJsonFile($"config/appsettings.{env.EnvironmentName}.json",
|
||||
optional: false, reloadOnChange: false);
|
||||
optional: true, reloadOnChange: false);
|
||||
})
|
||||
.ConfigureWebHostDefaults(webBuilder =>
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue