mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 00:01:34 +00:00
feat: add dev.sh script and document keyboard shortcuts
Single script to start both backend and frontend with prefixed logs. Updated README with dev.sh usage and keyboard shortcut reference. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+18
-3
@@ -30,8 +30,7 @@ docker build -f Dockerfile.sandbox -t windmill-sandbox .
|
||||
cd dev-dashboard/frontend && bun install && cd ..
|
||||
|
||||
# 5. Start the dashboard
|
||||
cd backend && bun run dev & # API on :5111
|
||||
cd frontend && bun run dev & # UI on :5112
|
||||
./dev.sh # API on :5111, UI on :5112
|
||||
|
||||
# 6. Open http://localhost:5112
|
||||
```
|
||||
@@ -119,7 +118,15 @@ The repo-level `.workmux.yaml` at the Windmill root configures how worktrees are
|
||||
|
||||
## Running
|
||||
|
||||
Start both backend and frontend (from the `dev-dashboard/` directory):
|
||||
From the `dev-dashboard/` directory:
|
||||
|
||||
```bash
|
||||
./dev.sh
|
||||
```
|
||||
|
||||
This starts both backend and frontend, with logs prefixed `[BE]` / `[FE]`. `Ctrl+C` stops both.
|
||||
|
||||
You can also start them separately:
|
||||
|
||||
```bash
|
||||
# Terminal 1: backend (auto-reloads on save)
|
||||
@@ -131,6 +138,14 @@ cd frontend && bun run dev
|
||||
|
||||
Open http://localhost:5112 in your browser.
|
||||
|
||||
### Keyboard shortcuts
|
||||
|
||||
| Shortcut | Action |
|
||||
|----------|--------|
|
||||
| `Cmd+Up/Down` | Navigate between worktrees |
|
||||
| `Cmd+K` | Create new worktree |
|
||||
| `Cmd+D` | Remove selected worktree |
|
||||
|
||||
### Environment variables
|
||||
|
||||
| Variable | Default | Description |
|
||||
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
cleanup() {
|
||||
kill $BE_PID $FE_PID 2>/dev/null || true
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
# Backend (bun --watch)
|
||||
cd backend
|
||||
bun run dev 2>&1 | sed 's/^/[BE] /' &
|
||||
BE_PID=$!
|
||||
cd ..
|
||||
|
||||
# Frontend (vite dev)
|
||||
cd frontend
|
||||
bun run dev 2>&1 | sed 's/^/[FE] /' &
|
||||
FE_PID=$!
|
||||
cd ..
|
||||
|
||||
wait
|
||||
Reference in New Issue
Block a user