mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 05:09:49 +02:00
Add more Environment Variables
This commit is contained in:
@@ -109,7 +109,7 @@ using (IServiceScope scope = app.Services.CreateScope())
|
||||
context.Database.Migrate();
|
||||
|
||||
if (!context.FileLibraries.Any())
|
||||
context.FileLibraries.Add(new FileLibrary(Tranga.Settings.DownloadLocation, "Default FileLibrary"));
|
||||
context.FileLibraries.Add(new (Tranga.Settings.DefaultDownloadLocation, "Default FileLibrary"));
|
||||
|
||||
await context.Sync(CancellationToken.None);
|
||||
}
|
||||
@@ -135,7 +135,7 @@ using (IServiceScope scope = app.Services.CreateScope())
|
||||
await context.Sync(CancellationToken.None);
|
||||
}
|
||||
|
||||
Tranga.SetServiceProvider(app.Services);
|
||||
Tranga.ServiceProvider = app.Services;
|
||||
Tranga.StartLogger(new FileInfo("Log4Net.config.xml"));
|
||||
Tranga.AddDefaultWorkers();
|
||||
|
||||
|
Reference in New Issue
Block a user