mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-26 16:01:09 +02:00
Update Launch Json (#1443)
This commit is contained in:
parent
34d05f4599
commit
c6b45a550f
72
.vscode/launch.template.jsonc
vendored
72
.vscode/launch.template.jsonc
vendored
@ -11,6 +11,36 @@
|
|||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Web Server",
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceRoot}/web",
|
||||||
|
"runtimeExecutable": "npm",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"run", "dev"
|
||||||
|
],
|
||||||
|
"console": "integratedTerminal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Model Server",
|
||||||
|
"type": "python",
|
||||||
|
"request": "launch",
|
||||||
|
"module": "uvicorn",
|
||||||
|
"cwd": "${workspaceFolder}/backend",
|
||||||
|
"env": {
|
||||||
|
"AUTH_TYPE": "disabled",
|
||||||
|
"LOG_ALL_MODEL_INTERACTIONS": "True",
|
||||||
|
"LOG_LEVEL": "DEBUG",
|
||||||
|
"PYTHONUNBUFFERED": "1",
|
||||||
|
},
|
||||||
|
"args": [
|
||||||
|
"model_server.main:app",
|
||||||
|
"--reload",
|
||||||
|
"--port",
|
||||||
|
"9000"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "API Server",
|
"name": "API Server",
|
||||||
"type": "python",
|
"type": "python",
|
||||||
@ -18,10 +48,10 @@
|
|||||||
"module": "uvicorn",
|
"module": "uvicorn",
|
||||||
"cwd": "${workspaceFolder}/backend",
|
"cwd": "${workspaceFolder}/backend",
|
||||||
"env": {
|
"env": {
|
||||||
|
"AUTH_TYPE": "disabled",
|
||||||
|
"LOG_ALL_MODEL_INTERACTIONS": "True",
|
||||||
"LOG_LEVEL": "DEBUG",
|
"LOG_LEVEL": "DEBUG",
|
||||||
"DISABLE_AUTH": "True",
|
"PYTHONUNBUFFERED": "1",
|
||||||
"TYPESENSE_API_KEY": "typesense_api_key",
|
|
||||||
"DYNAMIC_CONFIG_DIR_PATH": "./dynamic_config_storage"
|
|
||||||
},
|
},
|
||||||
"args": [
|
"args": [
|
||||||
"danswer.main:app",
|
"danswer.main:app",
|
||||||
@ -31,28 +61,33 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Indexer",
|
"name": "Indexing",
|
||||||
"type": "python",
|
"type": "python",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "danswer/background/update.py",
|
"program": "danswer/background/update.py",
|
||||||
"cwd": "${workspaceFolder}/backend",
|
"cwd": "${workspaceFolder}/backend",
|
||||||
"env": {
|
"env": {
|
||||||
|
"ENABLE_MINI_CHUNK": "false",
|
||||||
"LOG_LEVEL": "DEBUG",
|
"LOG_LEVEL": "DEBUG",
|
||||||
"PYTHONPATH": ".",
|
"PYTHONUNBUFFERED": "1",
|
||||||
"TYPESENSE_API_KEY": "typesense_api_key",
|
"PYTHONPATH": "."
|
||||||
"DYNAMIC_CONFIG_DIR_PATH": "./dynamic_config_storage"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// Celery and all async jobs, usually would include indexing as well but this is handled separately above for dev
|
||||||
{
|
{
|
||||||
"name": "Temp File Deletion",
|
"name": "Background Jobs",
|
||||||
"type": "python",
|
"type": "python",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "danswer/background/file_deletion.py",
|
"program": "scripts/dev_run_background_jobs.py",
|
||||||
"cwd": "${workspaceFolder}/backend",
|
"cwd": "${workspaceFolder}/backend",
|
||||||
"env": {
|
"env": {
|
||||||
"LOG_LEVEL": "DEBUG",
|
"LOG_LEVEL": "DEBUG",
|
||||||
"PYTHONPATH": "${workspaceFolder}/backend"
|
"PYTHONUNBUFFERED": "1",
|
||||||
}
|
"PYTHONPATH": "."
|
||||||
|
},
|
||||||
|
"args": [
|
||||||
|
"--no-indexing"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
// For the listner to access the Slack API,
|
// For the listner to access the Slack API,
|
||||||
// DANSWER_BOT_SLACK_APP_TOKEN & DANSWER_BOT_SLACK_BOT_TOKEN need to be set in .env file located in the root of the project
|
// DANSWER_BOT_SLACK_APP_TOKEN & DANSWER_BOT_SLACK_BOT_TOKEN need to be set in .env file located in the root of the project
|
||||||
@ -64,19 +99,10 @@
|
|||||||
"cwd": "${workspaceFolder}/backend",
|
"cwd": "${workspaceFolder}/backend",
|
||||||
"envFile": "${workspaceFolder}/.env",
|
"envFile": "${workspaceFolder}/.env",
|
||||||
"env": {
|
"env": {
|
||||||
"LOG_LEVEL": "DEBUG"
|
"LOG_LEVEL": "DEBUG",
|
||||||
|
"PYTHONUNBUFFERED": "1",
|
||||||
|
"PYTHONPATH": "."
|
||||||
}
|
}
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Web Server",
|
|
||||||
"type": "node",
|
|
||||||
"request": "launch",
|
|
||||||
"cwd": "${workspaceRoot}/web",
|
|
||||||
"runtimeExecutable": "npm",
|
|
||||||
"runtimeArgs": [
|
|
||||||
"run", "dev"
|
|
||||||
],
|
|
||||||
"console": "integratedTerminal"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user