fugo server
Builds the site into memory, serves it with live reload, and rebuilds it when files change (Go’s development server; environment development by default)
Usage#
fugo server [OPTIONS]Options#
-b,--base-url <URL>- The site’s base URL
-t,--theme <THEMES>- Themes to use (comma-separated)
--cache-dir <DIR>- The cache directory
--ignore-cache[=BOOL]- Ignores the cache directory
-D,--build-drafts[=BOOL]- Includes content marked as draft
-E,--build-expired[=BOOL]- Includes expired content
-F,--build-future[=BOOL]- Includes content with a publish date in the future
--clean-destination-dir[=BOOL]- Removes files from the publish directory that the static directories do not have
--no-times[=BOOL]- Does not copy the static files’ modification times (config
noTimes) --no-chmod[=BOOL]- Does not copy the static files’ permissions (config
noChmod) --minify[=BOOL]- Minifies the supported output formats
--threads <N>- The render thread count (default:
RAYON_NUM_THREADS, else the CPUs). The output does not depend on it -p,--port <PORT>- The port to listen on [default: 1313, or a free port when it is taken; 0: a free port]
--bind <INTERFACE>- The interface to listen on Default:
127.0.0.1. --append-port[=BOOL]- Puts the server’s port into the base URL (
--append-port=false: the configured or--base-urlport) --disable-live-reload- Serves the pages without the LiveReload script and endpoints
--live-reload-port <PORT>- The port the browsers’ LiveReload connects to (e.g. 443 behind an HTTPS proxy)
-N,--navigate-to-changed- Sends the browsers to the page whose content file changed
--render-to-disk- Builds into the publish directory (
--destination) and serves it from there, instead of memory --no-http-cache- Sends headers that keep browsers from caching (
Cache-Control: no-store, …) --proxy <PATH=URL>- Forwards the requests of PATH and below it to the server at URL, keeping their path (
/api/=http://127.0.0.1:3000, or an https:// server; repeatable). Replaces the[[server.proxies]]entry of the same path -w,--watch[=BOOL]- Watches the project and rebuilds on changes (
--watch=false: build once) --poll <INTERVAL>- Polls for changes at this interval instead of using file notifications (
700ms,2s; a number is milliseconds). Polling reads the watched files each time
Global options#
Every command takes these.
-s,--source <DIR>- The project directory (default: the working directory)
--config <FILE>- The configuration file, relative to the source. Default: the project’s
config.toml,config.yaml,config.ymlorconfig.json -e,--environment <ENV>- The build environment (default
production,developmentforserver): picks the configuration’s[environments.<environment>]table and the.env.<environment>file --themes-dir <DIR>- The themes directory
--clock <TIME>- The build’s “now” (RFC 3339, e.g.
2026-09-27T12:00:00Z), for dates andnow() -d,--destination <DIR>- The publish directory, relative to the source
-M,--render-to-memory- Renders into memory only (a dry run: nothing is written; what
serverdoes by default) -q,--quiet- Prints only warnings and errors