Skip to content

Commit

Permalink
fix: OR-1972 make machine appsettings optional
Browse files Browse the repository at this point in the history
  • Loading branch information
koenmetsu committed Nov 17, 2023
1 parent 84d8911 commit 5574026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public V047_FeitelijkeVerenigingWerdGeregistreerd_WithMinimalFields_ForDuplicate
new NaamWerdGewijzigd("V9999047", "Vereniging van Technologïeënthusiasten: Inováçie & Ëntwikkeling"),
new KorteNaamWerdGewijzigd("V9999047", "Korte Naam Test"),
new HoofdactiviteitenVerenigingsloketWerdenGewijzigd(
HoofdactiviteitVerenigingsloket.All().Take(3).Select(Registratiedata.HoofdactiviteitVerenigingsloket.With)
HoofdactiviteitVerenigingsloket.All().Take(3)
.Select(Registratiedata.HoofdactiviteitVerenigingsloket.With)
.ToArray()),
new LocatieWerdToegevoegd(locatie),
new LocatieWerdGewijzigd(locatie with { Naam = "Erembodegem"}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public DuplicateDetectionSetup()
var configuration = new ConfigurationBuilder()
.SetBasePath(rootDirectory)
.AddJsonFile("appsettings.json")
.AddJsonFile($"appsettings.{Environment.MachineName.ToLower()}.json")
.AddJsonFile($"appsettings.{Environment.MachineName.ToLower()}.json", optional: true)
.Build();

var elasticSearchOptions = configuration.GetSection("ElasticClientOptions")
Expand Down

0 comments on commit 5574026

Please sign in to comment.