✨ feat(vscode): add launch and task configuration files
- 新增 launch.json 文件以支持调试配置 - 新增 tasks.json 文件以支持运行任务
This commit is contained in:
36
Python/Web/.vscode/launch.json
vendored
Normal file
36
Python/Web/.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
// Use IntelliSense to learn about possible attributes.
|
||||||
|
// Hover to view descriptions of existing attributes.
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "调试",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"module": "uvicorn",
|
||||||
|
"env": {
|
||||||
|
"TYPE": "client"
|
||||||
|
},
|
||||||
|
"args": [
|
||||||
|
"app.main:app",
|
||||||
|
"--reload"
|
||||||
|
],
|
||||||
|
"jinja": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "调试管理端",
|
||||||
|
"type": "debugpy",
|
||||||
|
"request": "launch",
|
||||||
|
"module": "uvicorn",
|
||||||
|
"env": {
|
||||||
|
"TYPE": "admin"
|
||||||
|
},
|
||||||
|
"args": [
|
||||||
|
"app.main_admin:app",
|
||||||
|
"--reload"
|
||||||
|
],
|
||||||
|
"jinja": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
29
Python/Web/.vscode/tasks.json
vendored
Normal file
29
Python/Web/.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "运行",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "uvicorn app.main:app --host 0.0.0.0 --reload",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"options": {
|
||||||
|
"env": {
|
||||||
|
"TYPE": "client"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "运行管理端",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "uvicorn app.main_admin:app --host 0.0.0.0 --reload",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"options": {
|
||||||
|
"env": {
|
||||||
|
"TYPE": "admin"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user