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
- Run hugo --minify to build public/.
- Pages platforms: build hugo --minify, output public, pin the Hugo version via the platform's env var.
- VPS: upload public/ to the Nginx web root, e.g. with our SSH deploy workflow.
Per platform
| Platform | Notes |
|---|---|
| Cloudflare Pages / Netlify / GitHub Pages | Covered by Hugo's hosting docs. |
| VPS + Nginx | Static files behind Nginx. |
Notes
- Some themes need Hugo extended.
- baseURL must match the public URL.