mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
f62f71a81a
Co-authored-by: Bowen Liang <bowenliang@apache.org>
44 lines
1.4 KiB
JSON
44 lines
1.4 KiB
JSON
{
|
|
// 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": "Python: Celery",
|
|
"type": "debugpy",
|
|
"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"
|
|
},
|
|
"console": "integratedTerminal",
|
|
"python": "${command:python.interpreterPath}"
|
|
},
|
|
{
|
|
"name": "Python: Flask",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"module": "flask",
|
|
"env": {
|
|
"FLASK_APP": "app.py",
|
|
"FLASK_DEBUG": "1",
|
|
"GEVENT_SUPPORT": "True"
|
|
},
|
|
"args": [
|
|
"run",
|
|
"--host=0.0.0.0",
|
|
"--port=5001",
|
|
"--debug"
|
|
],
|
|
"jinja": true,
|
|
"justMyCode": true,
|
|
"python": "${command:python.interpreterPath}"
|
|
}
|
|
]
|
|
} |