Skip to content

Commit

Permalink
Add log for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelblaszczyk5 committed Jan 4, 2024
1 parent 894734a commit 1578ec3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prisma/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ if (!DATABASE_PUBLIC_URL) {
}

const tryWakingUpDatabase = async () => {
console.log('Trying to wake up database via public URL');

try {
await new PrismaClient({ datasources: { db: { url: DATABASE_PUBLIC_URL } } }).$connect();
} catch (error_) {
Expand Down

0 comments on commit 1578ec3

Please sign in to comment.