fengmiguoji commited on
Commit
665dcd6
·
verified ·
1 Parent(s): 7f92792

Upload api\.vscode\launch.json.example with huggingface_hub

Browse files
Files changed (1) hide show
  1. api//.vscode//launch.json.example +61 -0
api//.vscode//launch.json.example ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "0.2.0",
3
+ "compounds": [
4
+ {
5
+ "name": "Launch Flask and Celery",
6
+ "configurations": ["Python: Flask", "Python: Celery"]
7
+ }
8
+ ],
9
+ "configurations": [
10
+ {
11
+ "name": "Python: Flask",
12
+ "consoleName": "Flask",
13
+ "type": "debugpy",
14
+ "request": "launch",
15
+ "python": "${workspaceFolder}/.venv/bin/python",
16
+ "cwd": "${workspaceFolder}",
17
+ "envFile": ".env",
18
+ "module": "flask",
19
+ "justMyCode": true,
20
+ "jinja": true,
21
+ "env": {
22
+ "FLASK_APP": "app.py",
23
+ "GEVENT_SUPPORT": "True"
24
+ },
25
+ "args": [
26
+ "run",
27
+ "--port=5001"
28
+ ]
29
+ },
30
+ {
31
+ "name": "Python: Celery",
32
+ "consoleName": "Celery",
33
+ "type": "debugpy",
34
+ "request": "launch",
35
+ "python": "${workspaceFolder}/.venv/bin/python",
36
+ "cwd": "${workspaceFolder}",
37
+ "module": "celery",
38
+ "justMyCode": true,
39
+ "envFile": ".env",
40
+ "console": "integratedTerminal",
41
+ "env": {
42
+ "FLASK_APP": "app.py",
43
+ "FLASK_DEBUG": "1",
44
+ "GEVENT_SUPPORT": "True"
45
+ },
46
+ "args": [
47
+ "-A",
48
+ "app.celery",
49
+ "worker",
50
+ "-P",
51
+ "gevent",
52
+ "-c",
53
+ "1",
54
+ "--loglevel",
55
+ "DEBUG",
56
+ "-Q",
57
+ "dataset,generation,mail,ops_trace,app_deletion"
58
+ ]
59
+ }
60
+ ]
61
+ }