2023-09-01 09:15:06 +08:00
|
|
|
{
|
|
|
|
// 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": [
|
2024-01-02 23:42:00 +08:00
|
|
|
{
|
|
|
|
"name": "Python: Celery",
|
2024-04-05 17:49:09 +08:00
|
|
|
"type": "debugpy",
|
2024-01-02 23:42:00 +08:00
|
|
|
"request": "launch",
|
|
|
|
"module": "celery",
|
|
|
|
"justMyCode": true,
|
|
|
|
"args": ["-A", "app.celery", "worker", "-P", "gevent", "-c", "1", "--loglevel", "info", "-Q", "dataset,generation,mail"],
|
|
|
|
"envFile": "${workspaceFolder}/.env",
|
|
|
|
"env": {
|
|
|
|
"FLASK_APP": "app.py",
|
|
|
|
"FLASK_DEBUG": "1",
|
|
|
|
"GEVENT_SUPPORT": "True"
|
|
|
|
},
|
2024-06-11 13:11:28 +08:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"python": "${command:python.interpreterPath}"
|
2024-01-02 23:42:00 +08:00
|
|
|
},
|
2023-09-01 09:15:06 +08:00
|
|
|
{
|
|
|
|
"name": "Python: Flask",
|
2024-04-05 17:49:09 +08:00
|
|
|
"type": "debugpy",
|
2023-09-01 09:15:06 +08:00
|
|
|
"request": "launch",
|
|
|
|
"module": "flask",
|
|
|
|
"env": {
|
2023-11-06 19:36:16 +08:00
|
|
|
"FLASK_APP": "app.py",
|
2023-09-01 09:15:06 +08:00
|
|
|
"FLASK_DEBUG": "1",
|
|
|
|
"GEVENT_SUPPORT": "True"
|
|
|
|
},
|
|
|
|
"args": [
|
|
|
|
"run",
|
|
|
|
"--host=0.0.0.0",
|
|
|
|
"--port=5001",
|
|
|
|
"--debug"
|
|
|
|
],
|
|
|
|
"jinja": true,
|
2024-06-11 13:11:28 +08:00
|
|
|
"justMyCode": true,
|
|
|
|
"python": "${command:python.interpreterPath}"
|
2023-09-01 09:15:06 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|