wip fix
This commit is contained in:
parent
6959145d00
commit
b85c5cc48d
|
|
@ -71,6 +71,7 @@ DATABASE_URL="${action.url}"
|
|||
return "ok";
|
||||
case "db-pull":
|
||||
{
|
||||
await $({ cwd: dir("app/db") })`bun install`;
|
||||
await $({ cwd: dir("app/db") })`bun prisma db pull`;
|
||||
await $({ cwd: dir("app/db") })`bun prisma generate`;
|
||||
res.send("ok");
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@ import { g } from "./global";
|
|||
export const preparePrisma = async () => {
|
||||
if (await existsAsync(dir("app/db/.env"))) {
|
||||
if (!(await existsAsync(dir("node_modules/.prisma")))) {
|
||||
await $({ cwd: dir(`app/db`) })`bun install`;
|
||||
await $({ cwd: dir(`app/db`) })`bun prisma db pull`;
|
||||
await $({ cwd: dir(`app/db`) })`bun prisma generate`;
|
||||
}
|
||||
const { PrismaClient } = await import("../../app/db/db");
|
||||
|
|
|
|||
BIN
pkgs/zip/dbzip
BIN
pkgs/zip/dbzip
Binary file not shown.
Loading…
Reference in New Issue