Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

495 B
Raw Blame
// Must load before @karakeep/shared/config, which parses process.env at import time.
import "dotenv/config";

import { loadAllPlugins, prepareQueue } from "@karakeep/shared-server";

/**
 * Runs the queue provider's migrations (e.g. liteque's queue.db) without
 * starting the workers. The workers also do this on startup.
 */
async function main() {
  await loadAllPlugins();
  await prepareQueue();
  // Plugins may leave connections open; exit explicitly.
  process.exit(0);
}

void main();