mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-03 13:44:31 -04:00
Fixed a bug with config (#1996)
This commit is contained in:
parent
161120e39a
commit
90c44f6d65
@ -165,9 +165,9 @@ public class Program
|
|||||||
|
|
||||||
var env = hostingContext.HostingEnvironment;
|
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",
|
.AddJsonFile($"config/appsettings.{env.EnvironmentName}.json",
|
||||||
optional: false, reloadOnChange: false);
|
optional: true, reloadOnChange: false);
|
||||||
})
|
})
|
||||||
.ConfigureWebHostDefaults(webBuilder =>
|
.ConfigureWebHostDefaults(webBuilder =>
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user