Drizzle-kit hangs after push or studio

So after executing drizzle push or studio, it hangs after "Reading config file" Yesterday was working, and I did not change my drizzle config file, the only thing i did in between was I changed my docker compose config to persist data, yesterday it wasnt, and today I restarted docker so it deleted the db because the new docker config wasnt loaded yet, but the database is online and working well Normally for example using studio, it would show after the reading config file this Using 'postgres' driver for database querying and then the drizzle studei beta warning and would launch it Im using "drizzle-kit": "^0.24.2" "drizzle-orm": "^0.33.0" My config file
import { defineConfig } from 'drizzle-kit';
if (!process.env.DATABASE_URL) throw new Error('DATABASE_URL is not set');

export default defineConfig({
schema: './src/lib/server/db/schema.ts',

dbCredentials: {
url: process.env.DATABASE_URL
},

verbose: true,
strict: true,
dialect: 'postgresql'
});
import { defineConfig } from 'drizzle-kit';
if (!process.env.DATABASE_URL) throw new Error('DATABASE_URL is not set');

export default defineConfig({
schema: './src/lib/server/db/schema.ts',

dbCredentials: {
url: process.env.DATABASE_URL
},

verbose: true,
strict: true,
dialect: 'postgresql'
});
No description
1 Reply
José Silva
José SilvaOP4mo ago
Restarted my computer and it worked, maybe had something to do with macos pause, because I just closed the lid during the night and I had drizzle studio running idk
Want results from more Discord servers?
Add your server