diff --git a/CLAUDE.md b/CLAUDE.md index 44415a91..809d4f16 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -53,17 +53,24 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co # Terminal 1: SSH Tunnel (keep open) ssh -L 5432:127.0.0.1:5432 kjh2064@178.104.200.7 -# Terminal 2: Start Host in DEVELOPMENT MODE (NOT Release) +# Terminal 2: Start Host in DEVELOPMENT/LOCAL/TEST MODE cd D:\JobRoomz\KArtSell.Aegis # Set actual API keys from Gitea Secrets (not test keys!) $env:KRX_API_KEY = "" $env:OPENDART_API_KEY = "" $env:KIS_API_KEY = "" -$env:ASPNETCORE_ENVIRONMENT = "Development" -# Run in DEBUG mode (Development environment) -dotnet run --project src/KArtSell.Host +# CRITICAL: Run with --configuration Debug (DEVELOPMENT mode) +# This enables DevelopmentHeaderAuthenticationHandler (reads X-KArtSell-User header) +# appsettings.Development.json will be loaded automatically +dotnet run --project src/KArtSell.Host --configuration Debug --no-build + +# Expected output: +# info: Microsoft.Hosting.Lifetime[14] +# Now listening on: http://127.0.0.1:5002 +# info: Microsoft.Hosting.Lifetime[0] +# Application started. Press Ctrl+C to shut down. # Expected output: # Now listening on: http://127.0.0.1:5002