mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 17:23:18 +00:00
C# gw offload work, schema-izing stuff
This commit is contained in:
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();
|
||||
Reference in new issue
Block a user