Implemented ability to have server settings. Currently cache directory is there but it is not configurable (or used in this commit)

This commit is contained in:
Joseph Milazzo 2021-01-23 09:01:10 -06:00
parent 8220709b4c
commit 18385a4f80
20 changed files with 2854 additions and 6 deletions

View file

@ -31,6 +31,7 @@ namespace API
// Apply all migrations on startup
await context.Database.MigrateAsync();
await Seed.SeedRoles(roleManager);
await Seed.SeedSettings(context);
}
catch (Exception ex)
{
@ -43,6 +44,11 @@ namespace API
private static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
// .ConfigureLogging(logging =>
// {
// logging.ClearProviders();
// logging.AddConsole();
// })
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();