Skip to content

Commit 7c382e8

Browse files
bug fixes with azd up command
1 parent b9bc1f5 commit 7c382e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1126
-363
lines changed

End_to_end_Solutions/AOAISearchDemo/.vscode/launch.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"type": "python",
1010
"request": "launch",
1111
"module": "flask",
12-
"cwd": "${workspaceFolder}/app/data",
12+
"cwd": "${workspaceFolder}/app",
1313
"env": {
14-
"FLASK_APP": "app.py",
14+
"FLASK_APP": "data/app.py",
1515
"FLASK_ENV": "development",
1616
"FLASK_DEBUG": "0"
1717
},
@@ -24,16 +24,16 @@
2424
"console": "integratedTerminal",
2525
"justMyCode": true,
2626
"envFile": "${input:dotEnvFilePath}",
27-
"preLaunchTask": "Data service: pip install dependencies"
27+
"preLaunchTask": "pip install dependencies"
2828
},
2929
{
3030
"name": "Backend: Launch & Attach server",
3131
"type": "python",
3232
"request": "launch",
3333
"module": "flask",
34-
"cwd": "${workspaceFolder}/app/backend",
34+
"cwd": "${workspaceFolder}/app",
3535
"env": {
36-
"FLASK_APP": "app.py",
36+
"FLASK_APP": "backend/app.py",
3737
"FLASK_ENV": "development",
3838
"FLASK_DEBUG": "0"
3939
},
@@ -46,16 +46,16 @@
4646
"console": "integratedTerminal",
4747
"justMyCode": true,
4848
"envFile": "${input:dotEnvFilePath}",
49-
"preLaunchTask": "Backend: pip install dependencies"
49+
"preLaunchTask": "pip install dependencies"
5050
},
5151
{
5252
"name": "Backend: Launch & Attach server (No Install)",
5353
"type": "python",
5454
"request": "launch",
5555
"module": "flask",
56-
"cwd": "${workspaceFolder}/app/backend",
56+
"cwd": "${workspaceFolder}/app",
5757
"env": {
58-
"FLASK_APP": "app.py",
58+
"FLASK_APP": "backend/app.py",
5959
"FLASK_ENV": "development",
6060
"FLASK_DEBUG": "0"
6161
},

End_to_end_Solutions/AOAISearchDemo/.vscode/tasks.json

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -35,60 +35,36 @@
3535
"problemMatcher": []
3636
},
3737
{
38-
"label": "Root folder: pip install app package",
38+
"label": "pip install dependencies",
3939
"type": "shell",
40-
"command": "${command:python.interpreterPath} -m pip install -e .",
40+
"command": "${command:python.interpreterPath} -m pip install -r requirements.txt",
4141
"problemMatcher": [],
4242
"options": {
4343
"cwd": "${workspaceFolder}/app"
4444
}
4545
},
46-
{
47-
"label": "Data service: pip install dependencies",
48-
"type": "shell",
49-
"command": "${command:python.interpreterPath} -m pip install -r requirements.txt",
50-
"problemMatcher": [],
51-
"options": {
52-
"cwd": "${workspaceFolder}/app/data"
53-
},
54-
"dependsOn": [
55-
"Root folder: pip install app package",
56-
]
57-
},
5846
{
5947
"label": "Data service: Start",
6048
"type": "shell",
61-
"command": "pwsh ./launchPythonWithEnvVars.ps1 ${command:python.interpreterPath} app.py",
49+
"command": "pwsh ./scripts/launchPythonWithEnvVars.ps1 ${command:python.interpreterPath} app/data/app.py",
6250
"problemMatcher": [],
6351
"options": {
64-
"cwd": "${workspaceFolder}/app/data"
52+
"cwd": "${workspaceFolder}"
6553
},
6654
"dependsOn": [
67-
"Data service: pip install dependencies"
68-
]
69-
},
70-
{
71-
"label": "Backend: pip install dependencies",
72-
"type": "shell",
73-
"command": "${command:python.interpreterPath} -m pip install -r requirements.txt",
74-
"problemMatcher": [],
75-
"options": {
76-
"cwd": "${workspaceFolder}/app/backend"
77-
},
78-
"dependsOn": [
79-
"Root folder: pip install app package",
55+
"pip install dependencies"
8056
]
8157
},
8258
{
8359
"label": "Backend: Start",
8460
"type": "shell",
85-
"command": "pwsh ./launchPythonWithEnvVars.ps1 ${command:python.interpreterPath} backend/app.py",
61+
"command": "pwsh ./scripts/launchPythonWithEnvVars.ps1 ${command:python.interpreterPath} app/backend/app.py",
8662
"problemMatcher": [],
8763
"options": {
88-
"cwd": "${workspaceFolder}/app"
64+
"cwd": "${workspaceFolder}"
8965
},
9066
"dependsOn": [
91-
"Backend: pip install dependencies"
67+
"pip install dependencies"
9268
],
9369
"detail": "Install virtual env [Python: Create Environment...] and select in VS Code [Python: Select Interpreter]"
9470
},

0 commit comments

Comments
 (0)