diff --git a/entrypoint.sh b/entrypoint.sh index 8b350a0..94364fd 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ #!/bin/sh -node dist/src/migrate.js +node ./dist/src/migrate.js -NODE_ENV="production" node dist/src/main.js \ No newline at end of file +node ./dist/src/main.js \ No newline at end of file diff --git a/src/migrate.ts b/src/migrate.ts index 2642902..2c789d1 100644 --- a/src/migrate.ts +++ b/src/migrate.ts @@ -45,7 +45,7 @@ const findPrismaSchema = async (): Promise => { 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`);