53 lines
2.2 KiB
JSON
53 lines
2.2 KiB
JSON
{
|
|
// VS Code 에서 F5 를 누르면 서버가 뜨고 브라우저가 자동으로 열립니다.
|
|
// (Visual Studio 의 "실행" 버튼과 같은 동작)
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "서버 실행 (브라우저 자동 열기)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/GameServer/bin/Debug/net9.0/GameServer.dll",
|
|
"args": [],
|
|
// wwwroot 와 appsettings.json 을 찾으려면 프로젝트 폴더가 작업 경로여야 합니다.
|
|
"cwd": "${workspaceFolder}/GameServer",
|
|
"stopAtEntry": false,
|
|
"console": "internalConsole",
|
|
"env": {
|
|
"ASPNETCORE_ENVIRONMENT": "Development",
|
|
"ASPNETCORE_URLS": "http://localhost:5281"
|
|
// 관리자 비밀번호를 여기 두고 싶다면 아래 줄의 주석을 풀어 쓰세요.
|
|
// 단, 이 파일은 git 에 커밋되므로 공개 저장소라면 넣지 마세요.
|
|
// 비워 두면 appsettings.json 의 Portfolio:AdminPassword 값을 씁니다.
|
|
// "Portfolio__AdminPassword": "여기에-비밀번호"
|
|
},
|
|
// 서버가 "Now listening on: ..." 을 찍으면 그 주소를 브라우저로 엽니다.
|
|
"serverReadyAction": {
|
|
"action": "openExternally",
|
|
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
|
|
}
|
|
},
|
|
{
|
|
"name": "서버 실행 (브라우저 안 열기)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/GameServer/bin/Debug/net9.0/GameServer.dll",
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}/GameServer",
|
|
"stopAtEntry": false,
|
|
"console": "internalConsole",
|
|
"env": {
|
|
"ASPNETCORE_ENVIRONMENT": "Development",
|
|
"ASPNETCORE_URLS": "http://localhost:5281"
|
|
}
|
|
},
|
|
{
|
|
"name": "실행 중인 서버에 붙기",
|
|
"type": "coreclr",
|
|
"request": "attach"
|
|
}
|
|
]
|
|
}
|