mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-11-30 10:18:13 +08:00
d069c668f8
Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: Garfield Dai <dai.hai@foxmail.com> Co-authored-by: chenhe <guchenhe@gmail.com> Co-authored-by: jyong <jyong@dify.ai> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: Yeuoly <admin@srmxy.cn>
42 lines
1.3 KiB
JSON
42 lines
1.3 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": "python",
|
|
"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"
|
|
},
|
|
{
|
|
"name": "Python: Flask",
|
|
"type": "python",
|
|
"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
|
|
}
|
|
]
|
|
} |