mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 13:34:24 +01:00
switch to deno.land/postgresjs for free 4x speed increase
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import { DittoDB } from '@/db/DittoDB.ts';
|
||||
import { delay } from '@/test.ts';
|
||||
|
||||
if (Deno.env.get('CI') && Deno.env.get('DATABASE_URL')?.startsWith('postgres')) {
|
||||
console.info('Waiting 15 seconds for postgres to start...');
|
||||
await delay(15000);
|
||||
}
|
||||
|
||||
const kysely = await DittoDB.getInstance();
|
||||
await kysely.destroy();
|
||||
|
||||
Reference in New Issue
Block a user