added traefik config provider endpoint

This commit is contained in:
Milo Schwartz
2024-09-28 22:50:10 -04:00
parent a67463a518
commit 07bf2059c6
10 changed files with 134 additions and 472 deletions

View File

@@ -1,10 +1,13 @@
import { migrate } from "drizzle-orm/better-sqlite3/migrator";
import db from "@server/db";
import path from "path";
const runMigrations = async () => {
console.log("Running migrations...");
try {
migrate(db, { migrationsFolder: "./server/migrations" });
migrate(db, {
migrationsFolder: path.join(__dirname, "server/migrations"),
});
console.log("Migrations completed successfully.");
} catch (error) {
console.error("Error running migrations:", error);