-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add launch.json configuration for Django debug, Python file deb…
…ug, npm dev, npm build, Celery worker, and Celery Beat
- Loading branch information
1 parent
d2d2981
commit f4ba158
Showing
1 changed file
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
|
||
{ | ||
"name": "Django debug", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/manage.py", | ||
"args": [ | ||
"runserver", | ||
"--settings=FasterRunner.settings.dev" | ||
], | ||
"django": true, | ||
"justMyCode": true | ||
}, | ||
{ | ||
"name": "Python: Current File", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"console": "integratedTerminal", | ||
"cwd": "${fileDirname}", | ||
"env": { | ||
"PYTHONPATH": "${workspaceFolder}${pathSeparator}${env:PYTHONPATH}" | ||
} | ||
}, | ||
{ | ||
"type": "node-terminal", | ||
"name": "npm dev", | ||
"request": "launch", | ||
"command": "npm run dev", | ||
"cwd": "${workspaceFolder}/web" | ||
}, | ||
{ | ||
"type": "node-terminal", | ||
"name": "npm build", | ||
"request": "launch", | ||
"command": "npm run build", | ||
"cwd": "${workspaceFolder}/web" | ||
}, | ||
{ | ||
"name": "Celery worker", | ||
"type": "debugpy", | ||
"module": "celery", | ||
"request": "launch", | ||
"args": [ | ||
"-A", | ||
"FasterRunner.mycelery", | ||
"worker", | ||
"-l", | ||
"info", | ||
"-P", | ||
"gevent" | ||
], | ||
"env": { | ||
"DJANGO_SETTINGS_MODULE": "FasterRunner.settings.dev", | ||
"GEVENT_SUPPORT": "True" | ||
}, | ||
"console": "integratedTerminal", | ||
"justMyCode": true | ||
}, | ||
{ | ||
"name": "Celery Beat", | ||
"type": "debugpy", | ||
"module": "celery", | ||
"request": "launch", | ||
"args": [ | ||
"-A", | ||
"FasterRunner.mycelery", | ||
"beat", | ||
"-l", | ||
"info", | ||
], | ||
"env": { | ||
"DJANGO_SETTINGS_MODULE": "FasterRunner.settings.dev" | ||
}, | ||
"console": "integratedTerminal", | ||
"justMyCode": true | ||
} | ||
] | ||
} |