Skip to content

Commit

Permalink
fix: migrate.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
OnlyNico43 committed Jun 6, 2024
1 parent 5a2422e commit 67a7768
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
node dist/src/migrate.js
node ./dist/src/migrate.js

NODE_ENV="production" node dist/src/main.js
node ./dist/src/main.js
2 changes: 1 addition & 1 deletion src/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const findPrismaSchema = async (): Promise<string | null> => {
const fromCurrentDir = join(__dirname, 'prisma', 'schema.prisma');
if (await probe(fromCurrentDir)) return fromCurrentDir;

const fromParentDir = join(__dirname, '..', 'prisma', 'schema.prisma');
const fromParentDir = join(__dirname, '../..', 'prisma', 'schema.prisma');
if (await probe(fromParentDir)) return fromParentDir;

console.error(`Could not find prisma directory`);
Expand Down

0 comments on commit 67a7768

Please sign in to comment.