Change server-side shell running implementation

This commit is contained in:
Zef Hemel
2023-12-17 15:25:44 +01:00
parent 7bd58ae0e8
commit b3d5af360b
5 changed files with 23 additions and 26 deletions
+2
View File
@@ -7,6 +7,7 @@ import { ServerSystem } from "../server/server_system.ts";
import { AssetBundlePlugSpacePrimitives } from "../common/spaces/asset_bundle_space_primitives.ts";
import { determineDatabaseBackend } from "../server/db_backend.ts";
import { EndpointHook } from "../plugos/hooks/endpoint.ts";
import { determineShellBackend } from "../server/shell_backend.ts";
export async function runPlug(
spacePath: string,
@@ -34,6 +35,7 @@ export async function runPlug(
builtinAssetBundle,
),
dbBackend,
determineShellBackend(spacePath),
);
await serverSystem.init(true);
app.use((context, next) => {