mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Try pre-install deps, use custom launch.json for dev container
Previous attempts have not been sufficient. Let's see if this works
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
"unifiedjs.vscode-mdx"
|
||||
],
|
||||
"settings": {
|
||||
"python.defaultInterpreterPath": "/workspace/.venv/bin/python",
|
||||
"python.defaultInterpreterPath": "/opt/venv/bin/python",
|
||||
"python.formatting.provider": "black",
|
||||
"python.linting.enabled": true,
|
||||
"python.linting.mypyEnabled": true,
|
||||
@@ -47,38 +47,10 @@
|
||||
],
|
||||
"python.testing.unittestEnabled": false,
|
||||
"python.testing.pytestEnabled": true,
|
||||
"launch": {
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch Khoj",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"module": "src.khoj.main",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": false,
|
||||
"sudo": true,
|
||||
"args": [
|
||||
"-v",
|
||||
"--anonymous-mode",
|
||||
"--non-interactive",
|
||||
"--port=42110"
|
||||
],
|
||||
"envFile": "${workspaceFolder}/.env",
|
||||
"env": {
|
||||
"KHOJ_ADMIN_EMAIL": "admin",
|
||||
"KHOJ_ADMIN_PASSWORD": "admin",
|
||||
"USE_EMBEDDED_DB": "true",
|
||||
"KHOJ_DEBUG": "true",
|
||||
"KHOJ_TELEMETRY_DISABLED": "true",
|
||||
"PROMPTRACE_DIR": "${workspaceFolder}/promptrace"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "scripts/dev_setup.sh",
|
||||
"postCreateCommand": "scripts/dev_setup.sh --devcontainer",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/github-cli:1": {},
|
||||
"ghcr.io/devcontainers/features/node:1": {
|
||||
|
||||
Reference in New Issue
Block a user