FeaturesCommunityGuidesUse casesCompareToolsBlogPricing
Orlume logo

How to deploy a website

How to deploy a website step by step, whether it is plain HTML, a framework like Next.js or a builder project, plus domains, HTTPS and automatic deploys.

The short answer

Push your site's code to a GitHub repository, import it into a host such as Vercel, Netlify or Cloudflare, and let the host build and publish it to a free URL. Then add your domain in the host's settings and copy the DNS records it gives you to your registrar. Plain HTML can even be dragged into Netlify's dashboard. After that, every push to GitHub redeploys automatically.

  • Modern hosts build and deploy straight from a Git repository.
  • Static HTML can be deployed by drag-and-drop with no Git at all.
  • HTTPS is automatic on all major hosts.
  • Use preview deploys to check changes before they go live.

01Pick the route for your kind of site

Deployment routes
Your siteEasiest routeHosts
Plain HTML, CSS, JSDrag the folder in, or connect a repositoryNetlify, Cloudflare, GitHub Pages
Next.jsImport the repositoryVercel, Netlify, Cloudflare
Astro, Vite, HugoImport the repositoryAny static host
WordPressManaged WordPress hostShared or managed hosting
Builder sitePress PublishThe builder's own hosting
App with a databaseApp platform or VPSVercel plus a database, Railway, Fly.io, a VPS

02Deploying from GitHub, step by step

This works for almost every modern site and gives you automatic redeploys.

  1. 1Put the code on GitHubCreate a repository and push your project, including package.json if it has one.
  2. 2Sign in to the host with GitHubVercel, Netlify and Cloudflare all offer this.
  3. 3Import the repositoryThe host detects the framework and fills in the build command and output folder.
  4. 4Add environment variablesAPI keys and settings your site needs, entered in the host's settings, never committed to the repository.
  5. 5DeployThe first build takes a minute or two and gives you a URL like project.vercel.app.
  6. 6Connect your domainAdd it in Domains and follow the DNS instructions. How to connect a custom domain to Vercel shows the records.

03Deploying a plain HTML site without Git

If your site is a folder of files, Netlify lets you drag that folder into its dashboard and publishes it in seconds. Cloudflare offers direct upload too. This is the fastest way to get something live, though you lose automatic redeploys: every change means uploading again.

Bear in mind that Netlify's free plan charges 15 credits per production deploy out of 300 a month, per its credit documentation, so batch your changes.

04What happens on every deploy

The host clones the repository, installs dependencies, runs the build command and uploads the output to its network. If the build fails, the previous version stays live, so a broken build does not take your site down. Most hosts keep every past deploy, and rolling back is one click.

  • Preview deploys: each pull request gets its own URL to review.
  • Production deploys: merges to the main branch go live.
  • Rollbacks: restore any earlier deploy instantly.
  • Build logs: the first place to look when something fails.

05After the first deploy

Check the live site on a phone, test forms, and make sure your domain redirects consistently to one version (www or not). Then add the site to Search Console and submit the sitemap; how to get my website on Google covers that.

Choosing where to deploy? Vercel vs Netlify and how to host a website for free compare the options, and how to get a website online is the beginner's overview.

06Environment variables and secrets

Sites that call APIs, send email or talk to a database need keys. Never paste them into the code or commit them to GitHub, where they can be found and abused. Every host has an environment variables screen; add the keys there and read them in code. Most frameworks only expose variables with a public prefix to the browser, so anything secret stays on the server.

  • Separate values for preview and production deploys.
  • Rotate a key immediately if it was ever committed.
  • Redeploy after changing variables; most hosts read them at build time.

What people who tried it say

Hacker News developers value Git-based deploys, free SSL and previews from modern hosts, and often recommend them over managing servers for anything static.

Looking for more first-hand opinions? Search Reddit for “how to deploy a website”. We link the live threads rather than summarizing them, so you read them in full.

Our take

deploy from GitHub even for small sites. The automatic redeploys, previews and one-click rollbacks save more time than the five minutes of setup.

Where this falls short

Every host's dashboard is slightly different and changes over time. Sites with databases, background jobs or long-running servers need more than this guide covers.

Where Orlume fits

Orlume skips deployment setup entirely: press Publish, pick a name and the site is live at name.orlume.site. The free plan includes 10 message credits.

Free to start · No card required · Live in one click

Sources

  1. 1.Adding and configuring a custom domain · Vercel Docs
  2. 2.How credits work · Netlify Docs
  3. 3.Cloudflare Pages · Cloudflare Docs

Orlume logoResearched and written by the Orlume team · Updated October 2026

More on hosting and domains

All 12 hosting and domains questions →
Questions

People also ask.

More on how to deploy a website, answered briefly.

How long does it take to deploy a website?

A first deploy usually takes a few minutes; DNS for a custom domain can take longer to update.

Do I need GitHub to deploy a website?

No. Drag-and-drop, CLI tools and builders all work without it.

Is deploying a website free?

Yes on free plans for most static sites. You pay for a domain and for higher limits.

How do I update a deployed website?

Push changes to the repository, or upload the new files; the host redeploys.

What is the difference between hosting and deploying?

Deploying is publishing a version; hosting is serving it to visitors afterwards.

Orlume logoStill stuck? Email us
Orlume logo

Build something that doesn't look AI-made.

Describe the site you want. Watch it get designed, not just generated. Then publish it to its own orlume.site address.

  • Free to start
  • No card required
  • Publish to a live URL
  • You own the code