Skip to content

Commit

Permalink
Fix appsettings.json not being read inside docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
natenho committed Jul 15, 2019
1 parent 73f0cda commit 30ece85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mockaco/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static async Task Main(string[] args)
}

public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((_, configuration) => configuration.AddJsonFile(@"Settings\appsettings.json", optional: true, reloadOnChange: true))
.ConfigureAppConfiguration((_, configuration) => configuration.AddJsonFile(@"Settings/appsettings.json", optional: true, reloadOnChange: true))
.UseSerilog((context, serilog) =>
serilog.WriteTo.Console()
.ReadFrom.Configuration(context.Configuration))
Expand Down

0 comments on commit 30ece85

Please sign in to comment.