diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-21 21:59:38 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-21 21:59:38 +0000 |
commit | 9452a9788360e2bf3c5e0c36cfa0031e90bc0fe5 (patch) | |
tree | 300288f92b848337b6548d79e3d8af2bbc3be097 | |
parent | e493dca870fdabbf29e611dc12921afcdb9bf085 (diff) | |
download | newsaggregator-9452a9788360e2bf3c5e0c36cfa0031e90bc0fe5.tar.gz newsaggregator-9452a9788360e2bf3c5e0c36cfa0031e90bc0fe5.tar.bz2 newsaggregator-9452a9788360e2bf3c5e0c36cfa0031e90bc0fe5.zip |
Added startup - works this time
-rw-r--r-- | Main/Startup.cs | 15 |
1 files changed, 9 insertions, 6 deletions
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<DatabaseContext>();
-
- RecurringJob.AddOrUpdate(() => AggregatorJob.Process(context), Cron.HourInterval(3)); // add database update as a job
+ app.UseHangfireDashboard();
}
}
}
|