From fa8ce1815f46c6a0d5798ff967f6a9936a6d06ae Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Sun, 2 Aug 2026 23:09:33 +0900 Subject: [PATCH] docs: Clarify Host startup - must use --configuration Debug for DEVELOPMENT mode --- CLAUDE.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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