Build & debug
Controller
bash
cd CloudHost
go run ./cmd/server --data-dir ./data
go build -o hostagent ./cmd/server
go build -trimpath -ldflags "-s -w" -o dist/hostagent ./cmd/server| Flag | Default |
|---|---|
--port | 1881 |
--data-dir | ./data |
--log-level | info |
--log-file-level | debug |
--log-db-level | info |
Frontend
bash
cd FrontPage
npm run dev
npm run build
npx tsc --noEmitSync build output to the controller:
bash
rm -rf ../CloudHost/static/assets
cp -r dist/* ../CloudHost/static/Docs
bash
cd Documents
npm run dev
npm run build
npm run previewCLI
bash
cd CloudHost
go build -o quickidc ./cmd/quickidc
./quickidc versionDebugging
- Logs:
journalctl -u quickidc -for stdout. - Database:
sqlite3 data/data.dbby default, or MySQL / PostgreSQL configured indata/data.yaml. - API:
curlor browser devtools. - Platform: run the same command manually on the host.
Tests
bash
go vet ./...
go test ./...
go test ./internal/driver -run TestProxmox -vStatic assets
text
hostagent
static/index.html
static/assets/
VNCConsole/vnc.htmlMissing static breaks the home page; missing VNCConsole only affects the console.