snippetbashTip
hugo server — Build and serve a site with Hugo's built-in webserver. More information: <https://gohugo.io/commands
Viewed 0 times
commandbuildandservecliwithhugo serversite
Problem
How to use the
hugo server command: Build and serve a site with Hugo's built-in webserver. More information: <https://gohugo.io/commands/hugo_server/>.Solution
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 serverBuild and serve a site on a specified port number:
hugo server {{[-p|--port]}} {{port_number}}Build and serve a site while minifying supported output formats (HTML, XML, etc.):
hugo server --minifyBuild and serve a site in the production environment with full re-renders while minifying supported formats:
hugo server {{[-e|--environment]}} {{production}} --disableFastRender --minifyDisplay help:
hugo server {{[-h|--help]}}Code Snippets
Build and serve a site
hugo serverBuild and serve a site on a specified port number
hugo server {{[-p|--port]}} {{port_number}}Build and serve a site while minifying supported output formats (HTML, XML, etc.)
hugo server --minifyBuild and serve a site in the production environment with full re-renders while minifying supported formats
hugo server {{[-e|--environment]}} {{production}} --disableFastRender --minifyDisplay help
hugo server {{[-h|--help]}}Context
tldr-pages: common/hugo server
Revisions (0)
No revisions yet.