Add setup entrypoint

This commit is contained in:
Owen Schwartz
2024-12-22 12:33:49 -05:00
parent 39a24c951c
commit 9988061058
4 changed files with 12 additions and 7 deletions

View File

@@ -1,13 +1,11 @@
import { ensureActions } from "./db/ensureActions";
import { createApiServer } from "./apiServer";
import { createNextServer } from "./nextServer";
import { createInternalServer } from "./internalServer";
import { User, UserOrg } from "./db/schema";
import { copyInConfig } from "./setup/copyInConfig";
import { runSetupFunctions } from "./setup";
async function startServers() {
await ensureActions();
await copyInConfig();
await runSetupFunctions();
// Start all servers
const apiServer = createApiServer();