Skip to content

Commit

Permalink
Use correct app settings path
Browse files Browse the repository at this point in the history
  • Loading branch information
elzik committed Apr 4, 2024
1 parent 17596b4 commit a3a1836
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Elzik.FmSync.Worker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
using Polly;
using Elzik.FmSync.Application;

var appSettingsPath = Path.Join(AppContext.BaseDirectory, "appSettings.json");

var host = Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((_, config) =>
{
config.AddJsonFile("appSettings.json", false);
config.AddJsonFile(appSettingsPath, false);
})
.UseSerilog((context, config) => config.ReadFrom.Configuration(context.Configuration))
.ConfigureServices((hostContext, services) =>
Expand Down

0 comments on commit a3a1836

Please sign in to comment.