diff --git a/.devcontainer/vscode/launch.json b/.devcontainer/vscode/launch.json index 431c13d32..2c50af44b 100644 --- a/.devcontainer/vscode/launch.json +++ b/.devcontainer/vscode/launch.json @@ -2,7 +2,7 @@ "version": "0.2.0", "configurations": [ { - "name": "paperless backend", + "name": "manage.py runserver", "type": "python", "request": "launch", "program": "${workspaceFolder}/src/manage.py", @@ -10,6 +10,34 @@ "justMyCode": true, "args": ["runserver"], "django": true + }, + { + "name": "manage.py document_consumer", + "type": "python", + "request": "launch", + "program": "${workspaceFolder}/src/manage.py", + "console": "integratedTerminal", + "justMyCode": true, + "args": ["document_consumer"], + "django": true + }, + { + "name": "celery", + "type": "python", + "cwd": "${workspaceFolder}/src", + "request": "launch", + "module": "celery", + "console": "integratedTerminal", + "env": { + "PYTHONPATH": "${workspaceFolder}/src" + }, + "args": [ + "-A", + "paperless", + "worker", + "-l", + "DEBUG" + ] } ] } diff --git a/.devcontainer/vscode/tasks.json b/.devcontainer/vscode/tasks.json index d6c246238..fa27ba6bc 100644 --- a/.devcontainer/vscode/tasks.json +++ b/.devcontainer/vscode/tasks.json @@ -2,7 +2,7 @@ "version": "2.0.0", "tasks": [ { - "label": "Document Consumer", + "label": "manage.py document_consumer", "type": "shell", "command": "pipenv run python manage.py document_consumer", "group": "build", @@ -20,8 +20,27 @@ } }, + { + "label": "manage.py runserver", + "type": "shell", + "command": "pipenv run python manage.py runserver", + "group": "build", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": false, + "clear": true, + "revealProblems": "onProblem" + }, + "options": { + "cwd": "${workspaceFolder}/src" + } + + }, { - "label": "Maintenance: Migrate", + "label": "Maintenance: manage.py migrate", "type": "shell", "command": "pipenv run python manage.py migrate", "group": "none", @@ -39,7 +58,7 @@ } }, { - "label": "Maintenance: createsuperuser", + "label": "Maintenance: manage.py createsuperuser", "type": "shell", "command": "pipenv run python manage.py createsuperuser", "group": "none",