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 .」を実行してください。この最初のデプロイに設定もログインも不要 — すぐに公開URLが手に入り、いつでも無料アカウントにサイトを紐付けられる非公開のオーナー登録リンクも一緒に発行されます。

Static HTMLをコマンド1つでデプロイ

プロジェクトをビルドして、出力フォルダをharvisに渡すだけ。最初のデプロイにアカウントは不要 — 公開リンクと、あとで管理するための非公開のオーナー登録リンクが手に入ります。

terminal
npx harvis deploy .

ターミナルよりファイルをドラッグする方が好みですか?プロジェクトをビルドしたら、出力フォルダをここにドロップすれば同じように公開できます。

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にデプロイするのは本当に無料ですか?

はい、クレジットカードは不要です。無料枠は1サイトあたり500ファイル・50 MBで、静的なStatic HTMLのビルドなら十分すぎるほどです。公開したサイトに有効期限はなく、削除するまで公開され続けます。

デプロイしたStatic HTMLサイトに独自ドメインは使えますか?

どのサイトも無料のharvis.devアドレスが割り当てられ、オーナー登録後にダッシュボードから好きなサブドメインを選べます(ランダムな名前の代わりにmy-app.harvis.devのように)。すでに持っている独自ドメイン(mystore.comなど)をサイトに向ける機能は、まだ用意されていません。

Static HTMLをVercelやNetlifyにデプロイするのと何が違いますか?

VercelやNetlifyは、Gitリポジトリを接続してビルドを自分たちのサーバー上で実行し、ダッシュボードで設定する仕組みが中心です。harvisはそれをすべて省略します。ローカル(または自分のCI)でビルドし、出力フォルダに対してCLIコマンドを1つ実行するだけでリンクが手に入ります — プロジェクトの設定も、サイトを残しておきたくなるまでのアカウントも不要です。

other frameworks

別のものをデプロイしますか?

手順はどれでも同じです — ビルドしてから、出力フォルダをnpx harvis deployするだけ。