Déploie ton 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
Déploie-le
Lance "npx harvis deploy ." depuis la racine de ton projet. Pas de config ni de connexion pour ce premier déploiement — tu obtiens immédiatement une URL en ligne, plus un lien de rattachement privé pour rattacher le site à un compte gratuit quand tu veux.
Déploie Static HTML en une commande
Compile ton projet, puis confie le dossier de sortie à harvis. Pas besoin de compte pour ce premier déploiement — tu obtiens un lien public et un lien de rattachement privé pour le gérer plus tard.
npx harvis deploy .
Tu préfères glisser des fichiers plutôt qu'un terminal ? Compile le projet, puis dépose le dossier de sortie ici et publie-le de la même façon.
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.
Questions sur le déploiement de 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.
Déployer une app Static HTML sur harvis, c'est vraiment gratuit ?
Oui, sans carte bancaire. Les limites gratuites sont 500 fichiers et 50 Mo par site, largement suffisant pour un build statique Static HTML. Les sites publiés n'expirent pas — ils restent en ligne jusqu'à ce que tu les supprimes.
Puis-je utiliser mon propre domaine avec le site Static HTML déployé ?
Chaque site reçoit une adresse harvis.page gratuite, et tu peux choisir ton propre sous-domaine depuis le tableau de bord une fois le site rattaché — mon-app.harvis.page plutôt qu'une adresse aléatoire. Pointer un domaine que tu possèdes déjà (comme monsite.com) vers le site n'est pas encore possible.
En quoi est-ce différent de déployer Static HTML sur Vercel ou Netlify ?
Vercel et Netlify reposent sur la connexion d'un dépôt Git et l'exécution de ton build sur leurs serveurs, avec un tableau de bord pour tout configurer. harvis saute toute cette étape : tu compiles en local (ou dans ta propre CI), tu lances une commande CLI sur le dossier de sortie, et tu obtiens un lien — sans configurer de projet, et sans compte nécessaire tant que tu ne veux pas garder le site.
Tu déploies autre chose ?
La recette est la même partout — compile, puis npx harvis deploy le dossier de sortie.