INNER CODE UNIT · TypeScript

runSeed

rajnandan1/kener · scripts/main.ts:93

  async function runSeed() {
    try {
      console.log("Running seed...");
      await db.seed.run(); // Runs seed to the latest state
      console.log("Seed completed successfully!");
    } catch (err) {
      console.error("Error running seed:", err);
    }
  }

  app.listen(PORT, async () => {
    await runMigrations();
    await runSeed();
    await db.destroy();
    Startup();
    console.log("Kener is running on port " + PORT + "!");
  });

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…