Sample.app
Framework Guides

Hugo

Deploy a Hugo site to Sample.app.

Hugo generates static files to public/ by default.

Deploy

Build your site

hugo

Or with draft content:

hugo -D

Deploy to Sample.app

samplex deploy ./public

Hugo outputs to public/, which is not auto-detected by the CLI. You must specify the directory explicitly.

Custom output directory

If you've configured a different output directory in your Hugo config:

hugo.toml
publishDir = "dist"

Then auto-detection will find it:

samplex deploy

On this page