From 22ea6d24345d212c25b108b96ea3ef53739e3a77 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 21 Jan 2021 14:59:30 -0500 Subject: [PATCH] Revert the basepath change Pretty certain this is needed to make production configs work --- src/Tgstation.Server.Host/ServerFactory.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/ServerFactory.cs b/src/Tgstation.Server.Host/ServerFactory.cs index a273d1507c..e739d5c75f 100644 --- a/src/Tgstation.Server.Host/ServerFactory.cs +++ b/src/Tgstation.Server.Host/ServerFactory.cs @@ -49,7 +49,10 @@ namespace Tgstation.Server.Host var basePath = IOManager.ResolvePath(); IHostBuilder CreateDefaultBuilder() => Microsoft.Extensions.Hosting.Host.CreateDefaultBuilder(args) - .ConfigureAppConfiguration((context, builder) => { + .ConfigureAppConfiguration((context, builder) => + { + builder.SetBasePath(basePath); + builder.AddYamlFile("appsettings.yml", optional: true, reloadOnChange: true) .AddYamlFile($"appsettings.{context.HostingEnvironment.EnvironmentName}.yml", optional: true, reloadOnChange: true); // reorganize the builder so our yaml configs don't override the env/cmdline configs