deploy.ccSelf-hosting deploy handbook
deploy.cc / Guides / Hugo

Hugo deploy guide

Hugo is a fast Go static-site generator that outputs public/.

Build
hugo --minify
Output
public/
Official docs
Hugo Host and deploy

How to deploy

  1. Run hugo --minify to build public/.
  2. Pages platforms: build hugo --minify, output public, pin the Hugo version via the platform's env var.
  3. VPS: upload public/ to the Nginx web root, e.g. with our SSH deploy workflow.

Per platform

PlatformNotes
Cloudflare Pages / Netlify / GitHub PagesCovered by Hugo's hosting docs.
VPS + NginxStatic files behind Nginx.

Notes

Generate a config