Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Sep 6, 2024
1 parent 38c3c4c commit f8bdca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Digdir.Domain.Dialogporten.Janitor/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ static void BuildAndRun(string[] args)
builder.Host.UseDefaultServiceProvider(options => options.ValidateScopes = false);

builder.Configuration
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
.AddJsonFile($"appsettings.{builder.Environment.EnvironmentName}.json", optional: true, reloadOnChange: true)
.AddUserSecrets<Program>()
.AddEnvironmentVariables();

Console.WriteLine($"Current environment: {builder.Environment.EnvironmentName}");

builder.Host.UseSerilog((context, services, configuration) => configuration
.ReadFrom.Configuration(context.Configuration)
.ReadFrom.Services(services)
Expand Down

0 comments on commit f8bdca7

Please sign in to comment.