add launch config for celery and consumer
This commit is contained in:
parent
0d29313750
commit
ef13957f7d
@ -2,7 +2,7 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "paperless backend",
|
"name": "manage.py runserver",
|
||||||
"type": "python",
|
"type": "python",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/src/manage.py",
|
"program": "${workspaceFolder}/src/manage.py",
|
||||||
@ -10,6 +10,34 @@
|
|||||||
"justMyCode": true,
|
"justMyCode": true,
|
||||||
"args": ["runserver"],
|
"args": ["runserver"],
|
||||||
"django": true
|
"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"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "Document Consumer",
|
"label": "manage.py document_consumer",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "pipenv run python manage.py document_consumer",
|
"command": "pipenv run python manage.py document_consumer",
|
||||||
"group": "build",
|
"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",
|
"type": "shell",
|
||||||
"command": "pipenv run python manage.py migrate",
|
"command": "pipenv run python manage.py migrate",
|
||||||
"group": "none",
|
"group": "none",
|
||||||
@ -39,7 +58,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Maintenance: createsuperuser",
|
"label": "Maintenance: manage.py createsuperuser",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "pipenv run python manage.py createsuperuser",
|
"command": "pipenv run python manage.py createsuperuser",
|
||||||
"group": "none",
|
"group": "none",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user