Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
appsetting.json optional로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Plorence committed Feb 4, 2022
1 parent cb0f953 commit aad03c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TrackRecord/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
var configuration = new ConfigurationBuilder()
.AddEnvironmentVariables("APP_")
.AddCommandLine(args)
.AddJsonFile("appsettings.json",false,true)
.AddJsonFile("appsettings.json",true,true)
.AddJsonFile($"appsettings.{Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT")}.json",true,true)
.Build();
using (SentrySdk.Init(o =>
Expand Down Expand Up @@ -52,4 +52,4 @@ static IHostBuilder CreateHostBuilder(string[] args,string sentryDsn) =>
.ConfigureLogging((hostingContext, logging) =>
{
logging.AddSentry(sentryDsn);
});
});

0 comments on commit aad03c2

Please sign in to comment.