1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:22:06 +02:00
tldr/pages/common/hugo-server.md
2024-11-24 09:04:52 +01:00

603 B

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

  • Build and serve a site in the production environment with full re-renders while minifying supported formats:

hugo server --environment {{production}} --disableFastRender --minify

  • Display help:

hugo server --help