Serve
The serve command starts an HTTP server for a Nubo file or folder.
nubo serve <file|folder>nubo serve <file|folder> [flags]| Flag | Default | Description |
|---|---|---|
--addr string | @default | Address to listen on. |
Address
Section titled “Address”By default, --addr is @default.
nubo serve srcWhen @default is used, Nubo reads the address from the configuration file:
runtime: server: address: ":3000"To override the address:
nubo serve src --addr ":8080"Serving a File
Section titled “Serving a File”nubo serve main.nuboServing a Folder
Section titled “Serving a Folder”nubo serve srcOnly One Target
Section titled “Only One Target”The command accepts only one file or folder.
If more than one argument is provided, Nubo prints:
Only one folder or file can be servedMissing Arguments
Section titled “Missing Arguments”If no file or folder is provided, Nubo prints the command help.
nubo serve