Revert the basepath change

Pretty certain this is needed to make production configs work
This commit is contained in:
Jordan Brown
2021-01-21 14:59:30 -05:00
parent 91bf7e7f1c
commit 22ea6d2434
+4 -1
View File
@@ -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