* chore: Add tasks.json file * refactor: Remove deprecated pythonPath; redundant with settings.json anyway. * fix: Use expected type for python debug * feat: Run post clean task in seamless way * feat: Add compunds config for easier setup * style: Trigger pre-commit lint * fix: honcho python environment in vscode launch.json * fix: pre-commit prettier check --------- Co-authored-by: Revant Nandgaonkar <revant.one@gmail.com>
67 lines
1.9 KiB
JSON
67 lines
1.9 KiB
JSON
{
|
|
// 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": "Bench Web",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/frappe-bench/apps/frappe/frappe/utils/bench_helper.py",
|
|
"args": [
|
|
"frappe",
|
|
"serve",
|
|
"--port",
|
|
"8000",
|
|
"--noreload",
|
|
"--nothreading"
|
|
],
|
|
"cwd": "${workspaceFolder}/frappe-bench/sites",
|
|
"env": {
|
|
"DEV_SERVER": "1"
|
|
}
|
|
},
|
|
{
|
|
"name": "Bench Short Worker",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/frappe-bench/apps/frappe/frappe/utils/bench_helper.py",
|
|
"args": ["frappe", "worker", "--queue", "short"],
|
|
"cwd": "${workspaceFolder}/frappe-bench/sites",
|
|
"env": {
|
|
"DEV_SERVER": "1"
|
|
}
|
|
},
|
|
{
|
|
"name": "Bench Long Worker",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/frappe-bench/apps/frappe/frappe/utils/bench_helper.py",
|
|
"args": ["frappe", "worker", "--queue", "long"],
|
|
"cwd": "${workspaceFolder}/frappe-bench/sites",
|
|
"env": {
|
|
"DEV_SERVER": "1"
|
|
}
|
|
},
|
|
{
|
|
"name": "Honcho SocketIO Watch Schedule Worker",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"python": "/home/frappe/.pyenv/shims/python",
|
|
"program": "/home/frappe/.local/bin/honcho",
|
|
"cwd": "${workspaceFolder}/frappe-bench",
|
|
"console": "internalConsole",
|
|
"args": ["start", "socketio", "watch", "schedule", "worker"],
|
|
"postDebugTask": "Clean Honcho SocketIO Watch Schedule Worker"
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Honcho + Web debug",
|
|
"configurations": ["Bench Web", "Honcho SocketIO Watch Schedule Worker"],
|
|
"stopAll": true
|
|
}
|
|
]
|
|
}
|