2024-09-06 09:56:36 -07:00
|
|
|
# hugo server
|
|
|
|
|
|
|
|
> Build and serve a site with Hugo's built-in webserver.
|
|
|
|
> More information: <https://gohugo.io/commands/hugo_server/>.
|
|
|
|
|
|
|
|
- Build and serve a site:
|
|
|
|
|
|
|
|
`hugo server`
|
|
|
|
|
|
|
|
- Build and serve a site on a specified port number:
|
|
|
|
|
|
|
|
`hugo server --port {{port_number}}`
|
|
|
|
|
|
|
|
- Build and serve a site while minifying supported output formats (HTML, XML, etc.):
|
|
|
|
|
|
|
|
`hugo server --minify`
|
|
|
|
|
2024-11-24 00:04:52 -08:00
|
|
|
- Build and serve a site in the production environment with full re-renders while minifying supported formats:
|
|
|
|
|
|
|
|
`hugo server --environment {{production}} --disableFastRender --minify`
|
|
|
|
|
2024-09-06 09:56:36 -07:00
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`hugo server --help`
|