1
1
{
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
2
"version" : " 0.2.0" ,
6
3
"configurations" : [
7
4
{
8
- "name" : " Python: Celery " ,
5
+ "name" : " Python: Flask " ,
9
6
"type" : " debugpy" ,
10
7
"request" : " launch" ,
11
- "module" : " celery" ,
8
+ "python" : " ${workspaceFolder}/api/.venv/bin/python" ,
9
+ "cwd" : " ${workspaceFolder}/api" ,
10
+ "envFile" : " .env" ,
11
+ "module" : " flask" ,
12
12
"justMyCode" : true ,
13
- "args" : [" -A" , " app.celery" , " worker" , " -P" , " gevent" , " -c" , " 1" , " --loglevel" , " info" , " -Q" , " dataset,generation,mail" ],
14
- "envFile" : " ${workspaceFolder}/.env" ,
13
+ "jinja" : true ,
15
14
"env" : {
16
15
"FLASK_APP" : " app.py" ,
17
16
"FLASK_DEBUG" : " 1" ,
18
17
"GEVENT_SUPPORT" : " True"
19
18
},
20
- "console" : " integratedTerminal" ,
21
- "python" : " ${command:python.interpreterPath}"
19
+ "args" : [
20
+ " run" ,
21
+ " --host=0.0.0.0" ,
22
+ " --port=5001" ,
23
+ ]
22
24
},
23
25
{
24
- "name" : " Python: Flask " ,
26
+ "name" : " Python: Celery " ,
25
27
"type" : " debugpy" ,
26
28
"request" : " launch" ,
27
- "module" : " flask" ,
29
+ "python" : " ${workspaceFolder}/api/.venv/bin/python" ,
30
+ "cwd" : " ${workspaceFolder}/api" ,
31
+ "module" : " celery" ,
32
+ "justMyCode" : true ,
33
+ "envFile" : " .env" ,
34
+ "console" : " integratedTerminal" ,
28
35
"env" : {
29
36
"FLASK_APP" : " app.py" ,
30
37
"FLASK_DEBUG" : " 1" ,
31
38
"GEVENT_SUPPORT" : " True"
32
39
},
33
- "args" : [
34
- " run" ,
35
- " --host=0.0.0.0" ,
36
- " --port=5001" ,
37
- " --debug"
38
- ],
39
- "jinja" : true ,
40
- "justMyCode" : true ,
41
- "python" : " ${command:python.interpreterPath}"
42
- }
40
+ "args" : [" -A" , " app.celery" , " worker" , " -P" , " gevent" , " -c" , " 1" , " --loglevel" , " info" , " -Q" , " dataset,generation,mail" ],
41
+ },
43
42
]
44
43
}
0 commit comments