Publique seu app Static HTML
If you've got a folder of .html files and the assets they reference, there's no build step to run — that folder already is the deployable thing. This is the whole reason harvis exists.
- 01
There's no build step
A plain HTML site is already in its final form. Whatever a framework's build command produces for you, you already have by hand — nothing to compile or bundle.
- 02
Make sure there's an entrypoint
Have an "index.html" at the top of the folder — that's what loads when someone visits the site's address with no path after it.
- 03
Publique
Execute "npx harvis deploy ." a partir da raiz do seu projeto. Sem configuração e sem login para esta primeira publicação — você recebe um URL ao vivo imediatamente, mais um link privado de reivindicação para vincular o site a uma conta gratuita quando quiser.
Publique Static HTML com um comando
Compile seu projeto e entregue a pasta de saída ao harvis. Nenhuma conta necessária para a primeira publicação — você recebe um link ao vivo e um link privado de reivindicação para gerenciá-lo depois.
npx harvis deploy .
Prefere arrastar arquivos em vez de usar o terminal? Compile o projeto e solte a pasta de saída aqui para publicá-la da mesma forma.
Deploy Static HTML on every git push
The command above is one you will run again after every change. A git hook runs it for you, so every push publishes the folder before it leaves your machine.
The folder holding the finished site. "." is the repo root, which is right for hand-written HTML; a static-site generator writes somewhere else.
Runs the build first, with "set -e" above it — so a failed build stops the push instead of republishing whatever the folder held last time.
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.
printf '#!/bin/sh\nharvis deploy .\n' > .git/hooks/pre-push 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.
Perguntas sobre publicar Static HTML
Can I deploy just one file, or does it need to be a folder?
Either. A single "index.html" with no other files works fine — drag it in or point the CLI at its folder. Add a "styles.css" or an "images" folder alongside it and those publish too, as long as your HTML references them with relative paths.
Do relative links between my pages work correctly?
Yes — the folder structure you upload is served exactly as-is, so a link from index.html to about.html (or to images/logo.png) resolves the same way it would opening the files locally, as long as the paths are relative rather than pointing at your local filesystem.
Publicar um app Static HTML no harvis é realmente gratuito?
Sim, sem precisar de cartão. Os limites gratuitos são 500 arquivos e 50 MB por site, o que cobre um build estático de Static HTML com folga. Sites publicados não expiram — eles ficam no ar até você excluí-los.
Posso usar meu próprio domínio com o site Static HTML publicado?
Todo site recebe um endereço harvis.page gratuito, e você pode escolher seu próprio subdomínio pelo painel depois de reivindicá-lo — meu-app.harvis.page em vez de um aleatório. Apontar um domínio que você já possui (como minhaloja.com) para o site ainda não é suportado.
Qual a diferença entre isso e publicar Static HTML no Vercel ou Netlify?
Vercel e Netlify giram em torno de conectar um repositório Git e rodar seu build nos servidores deles, com um painel para configurar tudo. O harvis pula tudo isso: você compila localmente (ou no seu próprio CI), executa um único comando da CLI apontando para a pasta de saída e recebe um link — sem configurar projeto nenhum, e sem precisar de conta até você querer manter o site.
Vai publicar outra coisa?
A receita é a mesma em todos os casos — compile e depois npx harvis deploy na saída.