k8s docker 挂载配置文件热更新问题解决
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-29 17:59:01 +08:00
parent 8c94e17c14
commit 633507d4cd
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -76,8 +76,8 @@ if (urlsIndex > -1)
NewId.SetProcessIdProvider(new CurrentProcessIdProvider());
builder.Configuration.AddJsonFile("appsettings.json", false, true)
.AddJsonFile($"appsettings.{enviromentName}.json", false, true);
builder.Configuration.AddJsonFile(ConfigMapFileProvider.FromRelativePath(""), "appsettings.json", false, true)
.AddJsonFile(ConfigMapFileProvider.FromRelativePath(""), $"appsettings.{enviromentName}.json", false, true);
builder.Host
.UseServiceProviderFactory(new AutofacServiceProviderFactory())