Deploy

Build and deploy your site to production

Deploy your Hwaro site to any static hosting provider.

Built-in Deploy Command

Hwaro includes a built-in hwaro deploy command for deploying to configured targets:

# Deploy to default target
hwaro deploy

# Deploy to a specific target
hwaro deploy prod

# Preview changes without deploying
hwaro deploy --dry-run

Configure deployment targets in config.toml:

[deployment]
source_dir = "public"

[[deployment.targets]]
name = "prod"
url = "file:///var/www/mysite"

[[deployment.targets]]
name = "s3"
url = "s3://my-bucket"
command = "aws s3 sync {source}/ {url} --delete"

See CLI Reference for all deploy options and Configuration for target setup.

Build for Production

hwaro build

This generates static files in public/.

Optional: Minification

You can optionally minify output files:

hwaro build --minify

This performs conservative optimization:

All code blocks and content structure are preserved. See CLI Reference for details.

Hosting Options

Static sites can be deployed anywhere:

General Steps

  1. Build the site: hwaro build
  2. Upload public/ directory to your host (or use hwaro deploy)
  3. Configure your domain

In This Section