From 9452a9788360e2bf3c5e0c36cfa0031e90bc0fe5 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 21 Feb 2019 21:59:38 +0000 Subject: Added startup - works this time --- Main/Startup.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Main/Startup.cs') diff --git a/Main/Startup.cs b/Main/Startup.cs index 2857e5b..6474fcc 100644 --- a/Main/Startup.cs +++ b/Main/Startup.cs @@ -46,14 +46,17 @@ namespace Main { } app.UseDefaultFiles(); - app.UseStaticFiles(); + app.UseStaticFiles(new StaticFileOptions { + FileProvider = new PhysicalFileProvider( + Path.Combine( + Directory.GetParent(Directory.GetCurrentDirectory()).ToString(), + "Frontend" + ) + ) + }); - app.UseHangfireDashboard(); app.UseHangfireServer(); - - var context = app.ApplicationServices.GetService(); - - RecurringJob.AddOrUpdate(() => AggregatorJob.Process(context), Cron.HourInterval(3)); // add database update as a job + app.UseHangfireDashboard(); } } } -- cgit v1.2.3-13-gbd6f