Skip to content

Commit 4c48e62

Browse files
committed
build
1 parent 4579d38 commit 4c48e62

File tree

1 file changed

+2
-2
lines changed
  • packages/app/src/docbase

1 file changed

+2
-2
lines changed

packages/app/src/docbase/db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ export class DB implements DBLayer {
5959
env: {
6060
DATABASE_URL: url,
6161
},
62-
cwd: prodPrismaExists ? __dirname : undefined,
62+
cwd: prodPrismaExists ? prodPrismaPath : undefined,
6363
});
6464

6565
spawnSync("bun", ["x", "prisma", "migrate", "deploy"], {
6666
stdio: "inherit",
6767
env: {
6868
DATABASE_URL: url,
6969
},
70-
cwd: prodPrismaExists ? __dirname : undefined,
70+
cwd: prodPrismaExists ? prodPrismaPath : undefined,
7171
});
7272

7373
// 初始化 prisma

0 commit comments

Comments
 (0)