mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Python: Flask",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"python": "${workspaceFolder}/.venv/bin/python",
|
|
"cwd": "${workspaceFolder}",
|
|
"envFile": ".env",
|
|
"module": "flask",
|
|
"justMyCode": true,
|
|
"jinja": true,
|
|
"env": {
|
|
"FLASK_APP": "app.py",
|
|
"GEVENT_SUPPORT": "True"
|
|
},
|
|
"args": [
|
|
"run",
|
|
"--host=0.0.0.0",
|
|
"--port=5001"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python: Celery",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"python": "${workspaceFolder}/.venv/bin/python",
|
|
"cwd": "${workspaceFolder}",
|
|
"module": "celery",
|
|
"justMyCode": true,
|
|
"envFile": ".env",
|
|
"console": "integratedTerminal",
|
|
"env": {
|
|
"FLASK_APP": "app.py",
|
|
"FLASK_DEBUG": "1",
|
|
"GEVENT_SUPPORT": "True"
|
|
},
|
|
"args": [
|
|
"-A",
|
|
"app.celery",
|
|
"worker",
|
|
"-P",
|
|
"gevent",
|
|
"-c",
|
|
"1",
|
|
"--loglevel",
|
|
"info",
|
|
"-Q",
|
|
"dataset,generation,mail,ops_trace,app_deletion"
|
|
]
|
|
},
|
|
]
|
|
} |