docs: Update CLAUDE.md - use remote PostgreSQL via SSH port forwarding (178.104.200.7)
ci / backend (push) Failing after 1s
ci / static (push) Failing after 4s
ci / frontend (push) Failing after 5s

This commit is contained in:
2026-08-02 05:23:18 +09:00
parent aa1850ae33
commit 50db649b5c
+22 -8
View File
@@ -13,19 +13,33 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
### Prerequisites
- .NET 10 SDK
- Node.js 22 / pnpm 10
- PostgreSQL 17 (installed locally)
- SSH access to remote PostgreSQL server (178.104.200.7)
### Local PostgreSQL Setup
### Remote PostgreSQL Setup via SSH Port Forwarding
Ensure PostgreSQL 17 is running locally on default port 5432. Create the database and user:
The project database is hosted on `178.104.200.7`. Connect via SSH port forwarding:
```sql
CREATE DATABASE kartsell;
CREATE USER kartsell WITH PASSWORD 'kartsell';
ALTER ROLE kartsell CREATEDB;
GRANT ALL PRIVILEGES ON DATABASE kartsell TO kartsell;
```bash
ssh -L 5432:127.0.0.1:5432 kjh2064@178.104.200.7
```
This command:
- Forwards local port 5432 to remote PostgreSQL (127.0.0.1:5432)
- Keeps the tunnel open while you develop
- Run in a separate terminal/window and keep it running during development
**Windows (PowerShell):**
```powershell
ssh -L 5432:127.0.0.1:5432 kjh2064@178.104.200.7
```
**macOS/Linux:**
```bash
ssh -L 5432:127.0.0.1:5432 kjh2064@178.104.200.7
```
Once the tunnel is open, your local `localhost:5432` connects to the remote database.
### Local Development Environment
```bash