mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
There seems to be a more standard mechanism of specifying launch.json params for devcontainers. Previous mechanism to write launch.json to .vscode/launch.json in post creation step does not work. Improve default launch.json to include khoj admin username, password with placeholder values to get started with local development faster. Define dockerfile for devcontainer to pre-built server, web app dependencies during dev container image creation stage. So install on dev container startup is sped up as no need to install dependencies.
38 lines
1.2 KiB
JSON
38 lines
1.2 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Launch Khoj",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"module": "src.khoj.main",
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false,
|
|
"sudo": false,
|
|
"args": [
|
|
"-v",
|
|
"--anonymous-mode",
|
|
// "--non-interactive",
|
|
"--port=42110",
|
|
// "--host=example.com",
|
|
// "--sslcert=ssl.crt",
|
|
// "--sslkey=ssl.key",
|
|
],
|
|
"envFile": "${workspaceFolder}/.env",
|
|
"env": {
|
|
"KHOJ_ADMIN_EMAIL": "admin",
|
|
"KHOJ_ADMIN_PASSWORD": "admin",
|
|
"USE_EMBEDDED_DB": "true",
|
|
"KHOJ_DEBUG": "true",
|
|
"KHOJ_TELEMETRY_DISABLED": "true",
|
|
// Configure Code Sandbox
|
|
// "KHOJ_TERRARIUM_URL": "http://localhost:8080",
|
|
// Enable Promptracer to debug prompt flows
|
|
// "PROMPTRACE_DIR": "\${workspaceFolder}/promptrace",
|
|
// Enable Khoj Operator
|
|
// "KHOJ_OPERATOR_ENABLED": "True",
|
|
}
|
|
},
|
|
]
|
|
}
|