Skip to content

Commit

Permalink
Don't reload file config on change (#299)
Browse files Browse the repository at this point in the history
This should avoid some threads with filewatchers monitoring the files
  • Loading branch information
eduherminio authored Aug 3, 2023
1 parent 54e8fc7 commit 4a41761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Lynx.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
var environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production";

var config = new ConfigurationBuilder()
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile($"appsettings.{environmentName}.json", optional: true, reloadOnChange: true)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: false)
.AddJsonFile($"appsettings.{environmentName}.json", optional: true, reloadOnChange: false)
.AddEnvironmentVariables()
.Build();

Expand Down

0 comments on commit 4a41761

Please sign in to comment.