Deploye deine Static HTML-App
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
Deployen
Führe "npx harvis deploy ." im Projektstamm aus. Keine Konfiguration und kein Login für diesen ersten Deploy — du bekommst sofort eine Live-URL, dazu einen privaten Claim-Link, um die Site jederzeit einem kostenlosen Konto zuzuordnen.
Static HTML mit einem Befehl deployen
Baue dein Projekt und gib harvis den Output-Ordner. Für diesen ersten Deploy brauchst du kein Konto — du bekommst einen Live-Link und einen privaten Claim-Link, um die Site später zu verwalten.
npx harvis deploy .
Lieber Dateien ziehen statt Terminal? Baue das Projekt und zieh den Output-Ordner hierher — veröffentlicht wird genauso.
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.
Fragen zum Deployen von 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.
Ist das Deployen einer Static HTML-App auf harvis wirklich kostenlos?
Ja, keine Kreditkarte nötig. Die kostenlosen Limits sind 500 Dateien und 50 MB pro Site — für einen statischen Static HTML-Build reichlich Platz. Veröffentlichte Sites laufen nicht ab, sie bleiben live, bis du sie löschst.
Kann ich für die deployte Static HTML-Site eine eigene Domain nutzen?
Jede Site bekommt eine kostenlose harvis.page-Adresse, und du kannst dir nach dem Claimen im Dashboard ein eigenes Subdomain aussuchen — meine-app.harvis.page statt einer zufälligen. Eine eigene Domain, die du bereits besitzt (wie meinshop.de), auf die Site zeigen zu lassen, wird noch nicht unterstützt.
Was ist der Unterschied zum Deployen von Static HTML auf Vercel oder Netlify?
Vercel und Netlify drehen sich darum, ein Git-Repo zu verbinden und den Build auf ihren Servern laufen zu lassen, mit einem Dashboard zur Konfiguration. harvis überspringt das alles: Du baust lokal (oder in deiner eigenen CI), führst einen CLI-Befehl gegen den Output-Ordner aus und bekommst einen Link — ohne Projekt-Setup und ohne Konto, bis du die Site behalten willst.
Du deployst etwas anderes?
Das Rezept ist überall gleich — bauen, dann mit npx harvis deploy den Output ausliefern.