서버 게시글
This commit is contained in:
52
.vscode/launch.json
vendored
Normal file
52
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
// 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
50
.vscode/tasks.json
vendored
Normal file
50
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
// F5 가 실행 전에 부르는 빌드 작업. Ctrl+Shift+B 로도 돌릴 수 있습니다.
|
||||
"label": "build",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"build",
|
||||
"${workspaceFolder}/GameServer/GameServer.csproj",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary"
|
||||
],
|
||||
"problemMatcher": "$msCompile",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
// C# 코드를 고치면 알아서 다시 빌드하고 서버를 재시작합니다.
|
||||
// 터미널 > 작업 실행 > watch (핫 리로드)
|
||||
// wwwroot 의 HTML/CSS/JS 는 빌드가 필요 없으니 브라우저 새로고침만 하면 됩니다.
|
||||
"label": "watch (핫 리로드)",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"watch",
|
||||
"run",
|
||||
"--project",
|
||||
"${workspaceFolder}/GameServer/GameServer.csproj",
|
||||
"--launch-profile",
|
||||
"http"
|
||||
],
|
||||
"problemMatcher": "$msCompile",
|
||||
"isBackground": true
|
||||
},
|
||||
{
|
||||
"label": "clean",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"clean",
|
||||
"${workspaceFolder}/GameServer/GameServer.csproj"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user