Deplomo
Sign in
Static website deployment guide

Static site deployment on Deplomo

Deploy static HTML, CSS, and JavaScript sites or Vite builds on Deplomo from Git or the CLI. Add a custom domain and SSL certificate, then publish your static site.

Prepare your project for Static site deployment

Add the project dependency files, Prebuilt files or the build tool's package.json to your Git repository. Default build and run commands for this stack:

# Build command
npm ci && npm run build

# Run command
npx serve -s dist -l $PORT

The output directory may be dist, build, out or public. Set it to match your project.

Automatic deployment directly from the Git repository

  1. Create a new project and environment in the Deplomo user panel.
  2. Connect the service to the GitHub or GitLab repository and the desired branch.
  3. Set the build and run commands to match your project.
  4. Set the required environment variables, then deploy.
  5. Connect your custom domain in the Domains section and use free SSL.

Deploy a local folder with Deplomo CLI

curl -fsSL https://get.deplomo.com/install.sh | sh
deplomo login
cd your-project
deplomo deploy
deplomo logs

Use the Deplomo CLI to deploy local code directly without pushing it to Git.

On Windows (PowerShell), use irm https://get.deplomo.com/install.ps1 | iex instead of the first command.

Production tips for Static website

  • Enable route fallback for SPAs.
  • Serve hashed assets with a long cache lifetime.
  • Forms and APIs need a separate backend service.
  • Check the health check and startup time before routing live traffic.
  • Store persistent data and user files on persistent disks or cloud storage.

Frequently asked questions

How do I publish an HTML site on Deplomo static hosting?

Connect your HTML and CSS files to publish the site with a free SSL certificate.

How does hosting an HTML site affect load times?

Without database processing, HTML pages can load quickly.