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 2039d2ca94..55fdbb8b50 100644 --- a/api/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,30 +1,16 @@ { - // 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", + "python": "${workspaceFolder}/api/.venv/bin/python", + "cwd": "${workspaceFolder}/api", + "envFile": ".env", "module": "flask", + "justMyCode": true, + "jinja": true, "env": { "FLASK_APP": "app.py", "FLASK_DEBUG": "1", @@ -34,11 +20,24 @@ "run", "--host=0.0.0.0", "--port=5001", - "--debug" - ], - "jinja": true, + ] + }, + { + "name": "Python: Celery", + "type": "debugpy", + "request": "launch", + "python": "${workspaceFolder}/api/.venv/bin/python", + "cwd": "${workspaceFolder}/api", + "module": "celery", "justMyCode": true, - "python": "${command:python.interpreterPath}" - } + "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"], + }, ] } \ No newline at end of file