Add configuration settings

This commit is contained in:
Alexander Hyett 2017-09-26 22:10:02 +01:00
parent 579794caa7
commit 2dd4da3c24

View file

@ -11,7 +11,7 @@ namespace DotNetCron
var configuration = new ConfigurationBuilder()
.SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.json", optional:true, reloadOnChange:true)
//.AddEnvironmentVariables(prefix: "CRON_")
.AddEnvironmentVariables(prefix: "CRON_")
.Build();
var consoleSettings = new ConsoleSettings();