aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-31 19:35:17 +0900
committernsfisis <nsfisis@gmail.com>2025-12-31 19:35:17 +0900
commitf211ebcfac0a21e264b67c1226509896a11ed5ca (patch)
tree502c10bbebe041c439a54b3fd08a5b90b5be4429 /README.md
parent594482a280279149cbf5cb8b8d086961e65b0fb0 (diff)
downloadkioku-f211ebcfac0a21e264b67c1226509896a11ed5ca.tar.gz
kioku-f211ebcfac0a21e264b67c1226509896a11ed5ca.tar.zst
kioku-f211ebcfac0a21e264b67c1226509896a11ed5ca.zip
refactor(db): replace DATABASE_URL with individual POSTGRES_* env vars
Eliminates duplicate configuration by building the connection URL from POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB, POSTGRES_HOST, and POSTGRES_PORT instead of requiring a separate DATABASE_URL. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/README.md b/README.md
index 9082ab0..ce5db04 100644
--- a/README.md
+++ b/README.md
@@ -29,8 +29,6 @@ pnpm install
# Copy environment variables
cp .env.example .env
-# Edit .env for local development:
-# DATABASE_URL=postgresql://kioku:kioku@localhost:5432/kioku
# Start PostgreSQL
docker compose up db -d
@@ -53,7 +51,8 @@ pnpm dev:client # Frontend dev server (port 5173)
| `POSTGRES_USER` | PostgreSQL username | `kioku` |
| `POSTGRES_PASSWORD` | PostgreSQL password | `kioku` |
| `POSTGRES_DB` | PostgreSQL database name | `kioku` |
-| `DATABASE_URL` | Full PostgreSQL connection string | `postgresql://kioku:kioku@localhost:5432/kioku` |
+| `POSTGRES_HOST` | PostgreSQL host | `kioku-db` |
+| `POSTGRES_PORT` | PostgreSQL port | `5432` |
| `JWT_SECRET` | Secret key for JWT tokens (use a secure random string in production) | `your-secret-key` |
## Scripts