From 1e908e1def6b0e49120f3c3c7188206519c9f84d Mon Sep 17 00:00:00 2001 From: Artur Rachwal Date: Sun, 6 Oct 2024 20:01:39 +0200 Subject: [PATCH] workspace folder added as a root --- Sod.Worker/Modules/ConfigurationModule.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sod.Worker/Modules/ConfigurationModule.cs b/Sod.Worker/Modules/ConfigurationModule.cs index 34b139f..6214caf 100644 --- a/Sod.Worker/Modules/ConfigurationModule.cs +++ b/Sod.Worker/Modules/ConfigurationModule.cs @@ -17,7 +17,7 @@ protected override void Load(ContainerBuilder builder) { base.Load(builder); builder.Register(_ => new ConfigurationBuilder() - .SetBasePath(Directory.GetCurrentDirectory()) + .SetBasePath(Directory.Exists("/workspace") ? "/workspace" : Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json") .AddJsonFile("appsettings.local.json", optional: true) .Build())