From 8d9bce96f8c04ceb383071b6236fc67204d20585 Mon Sep 17 00:00:00 2001 From: antoinecaputo Date: Thu, 2 Apr 2026 00:13:49 +0200 Subject: [PATCH] fix: auto-create data/ directory before db:push SQLite error 14 on fresh clones because the data/ directory is gitignored and therefore absent. Prepend mkdir -p data to the db:push script so it is always created before drizzle-kit runs. Also add a brief note in the README Quick Start. Fixes #1 Co-Authored-By: Oz --- README.md | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 488c2c0..773ab29 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,8 @@ npm run db:push npm run go ``` +> `db:push` creates the `data/` directory automatically if it doesn't exist. + Open [http://localhost:3001](http://localhost:3001). --- diff --git a/package.json b/package.json index 973b39a..a8e43fe 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build": "cd client && npx vite build", "start": "tsx server/index.ts", "go": "npm run build && tsx server/index.ts", - "db:push": "drizzle-kit push", + "db:push": "mkdir -p data && drizzle-kit push", "db:studio": "drizzle-kit studio", "mcp": "tsx mcp/index.ts", "install-claude": "bash scripts/install.sh",