Add setup entrypoint

This commit is contained in:
Owen Schwartz 2024-12-22 12:33:49 -05:00
parent eb45fe8e49
commit 3d2d2043a9
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();