lgh_serve_start
Start the local HTTP Git server in the background so repos can be pushed and cloned. Returns startup output or errors if the port is already taken.
Instructions
Start the LGH HTTP server in the background by spawning "lgh serve --daemon" from the current binary. The server hosts the git endpoints that repos push to, so start it before lgh_up or before cloning from LGH. Returns the daemon's startup output, or an error with that output if the server cannot start (for example the port is already taken). Check lgh_status afterwards to confirm the PID and listen address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port to listen on (default: 9418) |