Piattaforma ITI TECHNOLOGY: monorepo, Medusa, API, sito, area riservata e deploy
Deploy stack su Proxmox / deploy (push) Failing after 3s
Deploy stack su Proxmox / deploy (push) Failing after 3s
Monorepo npm con apps/public (Angular SSR), apps/private (Angular SPA), apps/api (Fastify), packages/shared e packages/styles; Medusa 2.21 in medusa/; infrastruttura Docker (Postgres PostGIS+pgvector, Redis, Caddy, backup) e workflow Gitea Actions per il deploy via SSH a ogni push su master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018jQyT6dR9czzGwqb7FkG6u
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { fileURLToPath } from "node:url"
|
||||
import { migrate } from "drizzle-orm/postgres-js/migrator"
|
||||
import { createDb } from "../src/db/client.js"
|
||||
import { testDatabaseUrl } from "./helpers.js"
|
||||
|
||||
/** Applica le migrazioni al DB di test prima di tutti i test. */
|
||||
export default async function setup() {
|
||||
const { db, close } = createDb(testDatabaseUrl(), { max: 1 })
|
||||
try {
|
||||
await migrate(db, { migrationsFolder: fileURLToPath(new URL("../src/db/migrations", import.meta.url)) })
|
||||
} finally {
|
||||
await close()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user