Static HTML

ดีพลอยแอป 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.

steps
  1. 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.

  2. 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.

  3. 03

    ดีพลอยมัน

    รัน "npx harvis deploy ." จาก root ของโปรเจกต์คุณ ไม่ต้องตั้งค่าและไม่ต้องล็อกอินสำหรับการดีพลอยครั้งแรกนี้ — คุณจะได้ URL ใช้งานจริงทันที พร้อมลิงก์ claim ส่วนตัวเพื่อผูกไซต์เข้ากับบัญชีฟรีเมื่อคุณพร้อม

ดีพลอย Static HTML ด้วยคำสั่งเดียว

Build โปรเจกต์ของคุณ แล้วส่งโฟลเดอร์ output ให้ harvis ไม่ต้องมีบัญชีสำหรับการดีพลอยครั้งแรก — คุณจะได้ลิงก์ใช้งานจริงและลิงก์ claim ส่วนตัวเพื่อจัดการภายหลัง

terminal
npx harvis deploy .

อยากลากไฟล์แทนเทอร์มินัลไหม? Build โปรเจกต์แล้ว วางโฟลเดอร์ output ที่นี่ แล้วเผยแพร่แบบเดียวกัน

git hook

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.

in your repo root
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.

คำถามเกี่ยวกับการดีพลอย 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.

การดีพลอยแอป Static HTML ไปยัง harvis ฟรีจริงไหม?

ใช่ ไม่ต้องใช้บัตรเครดิต ขีดจำกัดฟรีคือ 500 ไฟล์และ 50 MB ต่อไซต์ ซึ่งเพียงพอมากสำหรับ static build ของ Static HTML ไซต์ที่เผยแพร่แล้วไม่มีวันหมดอายุ — จะออนไลน์อยู่จนกว่าคุณจะลบมัน

ฉันใช้โดเมนของตัวเองกับไซต์ Static HTML ที่ดีพลอยแล้วได้ไหม?

ทุกไซต์จะได้ที่อยู่ harvis.page ฟรี และคุณเลือก subdomain ของตัวเองจากแดชบอร์ดได้หลังจาก claim — my-app.harvis.page แทนที่จะเป็นชื่อสุ่ม การชี้โดเมนที่คุณเป็นเจ้าของอยู่แล้ว (เช่น mystore.com) มาที่ไซต์ยังไม่รองรับในตอนนี้

สิ่งนี้ต่างจากการดีพลอย Static HTML ไปยัง Vercel หรือ Netlify อย่างไร?

Vercel และ Netlify สร้างขึ้นรอบการเชื่อมต่อ Git repo แล้วรัน build บนเซิร์ฟเวอร์ของพวกเขา พร้อมแดชบอร์ดสำหรับตั้งค่า harvis ข้ามขั้นตอนเหล่านั้นทั้งหมด: คุณ build ในเครื่อง (หรือใน CI ของคุณเอง) รันคำสั่ง CLI เดียวกับโฟลเดอร์ output แล้วได้ลิงก์กลับมา — ไม่ต้องตั้งค่าโปรเจกต์ และไม่ต้องมีบัญชีจนกว่าคุณจะอยากเก็บไซต์ไว้

other frameworks

กำลังดีพลอยอย่างอื่นอยู่?

สูตรเดียวกันทุกที่ — build แล้ว npx harvis deploy โฟลเดอร์ output