Merge branch 'master' of http://git.d-popov.com/popov/ai-kevin
This commit is contained in:
24
.vscode/launch.json
vendored
24
.vscode/launch.json
vendored
@ -10,6 +10,30 @@
|
||||
"request": "launch",
|
||||
"preLaunchTask": "docker-run: debug",
|
||||
"platform": "node"
|
||||
},
|
||||
{
|
||||
"name": "Docker Python Launch?",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/agent-py-bot/agent.py",
|
||||
"console": "integratedTerminal",
|
||||
// "python": "${command:python.interpreterPath}", // Assumes Python extension is installed
|
||||
// "preLaunchTask": "docker-run: python-debug", // You may need to create this task
|
||||
// "env": {
|
||||
// "PYTHONUNBUFFERED": "1"
|
||||
// }
|
||||
},
|
||||
{
|
||||
"name": "Docker Python Launch with venv",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/agent-py-bot/agent.py",
|
||||
"console": "integratedTerminal",
|
||||
"python": "/venv/bin/python", // Path to the Python interpreter in your venv
|
||||
"env": {
|
||||
"PYTHONUNBUFFERED": "1"
|
||||
}
|
||||
}
|
||||
|
||||
]
|
||||
}
|
67
.vscode/tasks.json
vendored
67
.vscode/tasks.json
vendored
@ -19,22 +19,22 @@
|
||||
],
|
||||
"platform": "node"
|
||||
},
|
||||
{
|
||||
"type": "docker-run",
|
||||
"label": "docker-run: debug",
|
||||
"dependsOn": [
|
||||
"docker-build"
|
||||
],
|
||||
"dockerRun": {
|
||||
"env": {
|
||||
"DEBUG": "*",
|
||||
"NODE_ENV": "development"
|
||||
}
|
||||
},
|
||||
"node": {
|
||||
"enableDebugging": true
|
||||
}
|
||||
},
|
||||
// {
|
||||
// "type": "docker-run",
|
||||
// "label": "docker-run: debug2",
|
||||
// "dependsOn": [
|
||||
// "docker-build"
|
||||
// ],
|
||||
// "dockerRun": {
|
||||
// "env": {
|
||||
// "DEBUG": "*",
|
||||
// "NODE_ENV": "development"
|
||||
// }
|
||||
// },
|
||||
// "node": {
|
||||
// "enableDebugging": true
|
||||
// }
|
||||
// },
|
||||
{
|
||||
"type": "npm",
|
||||
"script": "start",
|
||||
@ -43,11 +43,38 @@
|
||||
"detail": "node /app/web/server.js"
|
||||
},
|
||||
{
|
||||
"type": "python",
|
||||
"script": "start:tele",
|
||||
"label": "python-run",
|
||||
"type": "shell",
|
||||
"command": "python agent-py-bot/agent.py",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "python-debug",
|
||||
"type": "shell",
|
||||
"command": "python -m debugpy --listen 0.0.0.0:5678 agent-py-bot/agent.py",
|
||||
// "command": "docker exec -w /workspace -it my-python-container /bin/bash -c 'source activate py && python -m debugpy --listen 0.0.0.0:5678 agent-py-bot/agent.py'",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "activate-venv-and-run-docker",
|
||||
"type": "shell",
|
||||
"command": "source /venv/bin/activate && docker-compose up", // Example command
|
||||
"problemMatcher": [],
|
||||
"label": "npm: start:tele",
|
||||
"detail": "python agent-py-bot/agent.py"
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
// ,{
|
||||
// "label": "activate-venv",
|
||||
// "type": "shell",
|
||||
// "command": "source /venv/bin/activate", // Example command
|
||||
// "problemMatcher": [],
|
||||
// "group": {
|
||||
// "kind": "build",
|
||||
// "isDefault": true
|
||||
// }
|
||||
// }
|
||||
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user