Skip to content

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
FlagDefault
--port1881
--data-dir./data
--log-levelinfo
--log-file-leveldebug
--log-db-levelinfo

Frontend ​

bash
cd FrontPage
npm run dev
npm run build
npx tsc --noEmit

Sync 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 preview

CLI ​

bash
cd CloudHost
go build -o quickidc ./cmd/quickidc
./quickidc version

Debugging ​

  • Logs: journalctl -u quickidc -f or stdout.
  • Database: sqlite3 data/data.db by default, or MySQL / PostgreSQL configured in data/data.yaml.
  • API: curl or browser devtools.
  • Platform: run the same command manually on the host.

Tests ​

bash
go vet ./...
go test ./...
go test ./internal/driver -run TestProxmox -v

Static assets ​

text
hostagent
static/index.html
static/assets/
VNCConsole/vnc.html

Missing static breaks the home page; missing VNCConsole only affects the console.

Released under the AGPLv3 License.