Despliega tu app de Hugo
Hugo builds a full site in well under a second and writes it to public — there's genuinely not much more to say. It was static-first before that was the default expectation.
- 01
Build the site
Run "hugo" from your project root. It compiles every content file and template into static HTML, CSS, and JS in a "public" folder — usually in well under a second.
- 02
Set the right base URL
Hugo bakes "baseURL" from hugo.toml into every generated link. Set it to your harvis.page address before building, or links to other pages on the site will point at the wrong place.
- 03
Despliégalo
Ejecuta "npx harvis deploy public" desde la raíz de tu proyecto. Sin configuración y sin iniciar sesión para este primer despliegue — consigues una URL en vivo al instante, más un enlace privado de reclamación para vincular el sitio a una cuenta gratuita cuando quieras.
Despliega Hugo con un comando
Compila tu proyecto y entrégale la carpeta de salida a harvis. No hace falta cuenta para este primer despliegue — consigues un enlace en vivo y un enlace privado de reclamación para gestionarlo más tarde.
hugo npx harvis deploy public
¿Prefieres arrastrar archivos en vez de usar una terminal? Compila el proyecto y suelta la carpeta de salida aquí para publicarla igual.
Deploy Hugo on every git push
The command above is one you will run again after every change. A git hook runs it for you: this one already points at public, the folder Hugo builds into.
The folder holding the finished site. "." is the repo root, which is right for hand-written HTML; a static-site generator writes somewhere else.
pre-push fires on every branch and every remote, so a feature branch would publish over your live site. With this on, a push from anywhere else exits early and goes through untouched.
cat > .git/hooks/pre-push <<'EOF' #!/bin/sh set -e hugo harvis deploy public EOF chmod +x .git/hooks/pre-push
The options, the gotchas and how to share a hook with your team are on the git hook page.
Preguntas sobre desplegar Hugo
I changed baseURL after already deploying. Do I need to redeploy?
Yes — baseURL is compiled into the HTML at build time, not read at request time. Update "hugo.toml", rebuild, and run "npx harvis deploy public" again; it updates the same site.
Does Hugo's pagination and taxonomy pages (tags, categories) work?
Yes — they're all generated as static HTML files at build time like every other Hugo page, so they deploy and serve exactly the same way.
¿Desplegar una app de Hugo en harvis es realmente gratis?
Sí, sin tarjeta. Los límites gratuitos son 500 archivos y 50 MB por sitio, de sobra para un build estático de Hugo. Los sitios publicados no caducan — siguen en vivo hasta que los elimines.
¿Puedo usar mi propio dominio con el sitio de Hugo desplegado?
Cada sitio recibe una dirección harvis.page gratuita, y puedes elegir tu propio subdominio desde el panel tras reclamarlo — mi-app.harvis.page en vez de uno aleatorio. Apuntar un dominio que ya tengas (como mitienda.com) al sitio todavía no está disponible.
¿En qué se diferencia esto de desplegar Hugo en Vercel o Netlify?
Vercel y Netlify giran en torno a conectar un repositorio Git y ejecutar tu build en sus servidores, con un panel para configurarlo. harvis se salta todo eso: compilas en local (o en tu propio CI), ejecutas un comando de la CLI contra la carpeta de salida y obtienes un enlace — sin configurar un proyecto, y sin necesidad de cuenta hasta que quieras conservar el sitio.
¿Vas a desplegar otra cosa?
La receta es la misma en todas partes — compílalo y luego npx harvis deploy la salida.