Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: use root dir to start python and celery (#5515)

crazywoola47a5d4527bab
diff --git a/api/.vscode/launch.json b/.vscode/launch.json
similarity index 71%
rename from api/.vscode/launch.json
rename to .vscode/launch.json
index 2039d2ca94f..55fdbb8b50f 100644
--- a/api/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -1,44 +1,43 @@
{
- // 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",
+ "name": "Python: Flask",
"type": "debugpy",
"request": "launch",
- "module": "celery",
+ "python": "${workspaceFolder}/api/.venv/bin/python",
+ "cwd": "${workspaceFolder}/api",
+ "envFile": ".env",
+ "module": "flask",
"justMyCode": true,
- "args": ["-A", "app.celery", "worker", "-P", "gevent", "-c", "1", "--loglevel", "info", "-Q", "dataset,generation,mail"],
- "envFile": "${workspaceFolder}/.env",
+ "jinja": true,
"env": {
"FLASK_APP": "app.py",
"FLASK_DEBUG": "1",
"GEVENT_SUPPORT": "True"
},
- "console": "integratedTerminal",
- "python": "${command:python.interpreterPath}"
+ "args": [
+ "run",
+ "--host=0.0.0.0",
+ "--port=5001",
+ ]
},
{
- "name": "Python: Flask",
+ "name": "Python: Celery",
"type": "debugpy",
"request": "launch",
- "module": "flask",
+ "python": "${workspaceFolder}/api/.venv/bin/python",
+ "cwd": "${workspaceFolder}/api",
+ "module": "celery",
+ "justMyCode": true,
+ "envFile": ".env",
+ "console": "integratedTerminal",
"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}"
- }
+ "args": ["-A", "app.celery", "worker", "-P", "gevent", "-c", "1", "--loglevel", "info", "-Q", "dataset,generation,mail"],
+ },
]
}
\ No newline at end of file