C# gw offload work, schema-izing stuff

This commit is contained in:
Rory& committed 2026-02-06 05:21:31 +01:00
1 parent 3a5009f7c7
commit 862bfd7803
25 files changed
+817 -83

No files matched your search

@@ -3,6 +3,9 @@ using Spacebar.CleanSettingsRows;
using Spacebar.Models.Db.Contexts;
var builder = Host.CreateApplicationBuilder(args);
if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("APPSETTINGS_PATH")))
builder.Configuration.AddJsonFile(Environment.GetEnvironmentVariable("APPSETTINGS_PATH")!);
builder.Services.AddHostedService<Worker>();
builder.Services.AddDbContextPool<SpacebarDbContext>(options => {
@@ -11,6 +14,5 @@ builder.Services.AddDbContextPool<SpacebarDbContext>(options => {
.EnableDetailedErrors();
});
var host = builder.Build();
host.Run();