Skip to content

Commit

Permalink
workspace folder added as a root
Browse files Browse the repository at this point in the history
  • Loading branch information
aaart committed Oct 6, 2024
1 parent a5ef57a commit 1e908e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sod.Worker/Modules/ConfigurationModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 1e908e1

Please sign in to comment.