docs: Clarify Host startup - must use --configuration Debug for DEVELOPMENT mode
This commit is contained in:
@@ -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 = "<actual-krx-api-key>"
|
||||
$env:OPENDART_API_KEY = "<actual-opendart-api-key>"
|
||||
$env:KIS_API_KEY = "<actual-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
|
||||
|
||||
Reference in New Issue
Block a user