mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-01 08:59:46 +02:00
chore: worktree dev setup (#484)
* chore: auto-assign per-worktree backend port via VS Code folderOpen task Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore: remove .conductor dev setup (moved to native git worktrees) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6937e01b49
commit
982030d26e
11 changed files with 108 additions and 386 deletions
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
|
|
@ -23,6 +23,8 @@
|
|||
"api.app:app",
|
||||
"--reload",
|
||||
"--host", "0.0.0.0"
|
||||
// Port comes from UVICORN_PORT in api/.env (per-worktree);
|
||||
// unset -> uvicorn's default 8000. See scripts/worktree-assign-port.sh.
|
||||
],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"envFile": "${workspaceFolder}/api/.env",
|
||||
|
|
|
|||
8
.vscode/settings.json
vendored
8
.vscode/settings.json
vendored
|
|
@ -1,3 +1,9 @@
|
|||
{
|
||||
"python.defaultInterpreterPath": "${workspaceFolder}/venv/bin/python"
|
||||
"python.defaultInterpreterPath": "${workspaceFolder}/venv/bin/python",
|
||||
"git.detectWorktrees": true,
|
||||
"git.worktreeIncludeFiles": [
|
||||
"api/.env",
|
||||
"api/.env.test",
|
||||
"ui/.env.local"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
23
.vscode/tasks.json
vendored
Normal file
23
.vscode/tasks.json
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
// Auto-runs when a worktree folder is opened. The first time, VS Code asks
|
||||
// to "Allow Automatic Tasks in Folder" (or run it via the command palette:
|
||||
// "Tasks: Allow Automatic Tasks in Folder"). Assigns this worktree a unique
|
||||
// backend port and points the UI env at it — see scripts/worktree-assign-port.sh.
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Assign worktree port",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/scripts/worktree-assign-port.sh",
|
||||
"presentation": {
|
||||
"reveal": "silent",
|
||||
"panel": "shared",
|
||||
"close": true
|
||||
},
|
||||
"runOptions": {
|
||||
"runOn": "folderOpen"
|
||||
},
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue