How to host a website from GitHub, and when Pages is not enough

Once your site works on your machine, there are three ways to get it online. The right one depends on whether your site needs a build step and how often you change it.
| Method | Best for | Updating |
|---|---|---|
| Paste HTML | Single pages, landing pages | Paste again |
| Upload a ZIP | Multi-file sites without Git | Upload again |
| Deploy from GitHub | Any project, especially with a build | Automatic on push |
GitHub Pages or a real host?
GitHub Pages is free and excellent for static sites, but it only serves HTML, CSS and JavaScript files. It cannot run Node.js, PHP or a database. If your site has a backend, saves form data or signs people in on the server, it needs hosting that runs your application.
Method 1: Paste HTML
The fastest option, for when the whole site is one file.
- Open a new deployment and choose Paste HTML.
- Paste the code and give it a name.
- Put it online.
Images must link elsewhere or be embedded, since there is only one file.
Method 2: Upload a ZIP
For multi-file sites when you do not want to learn Git yet.
- Check that
index.htmlworks locally. - Go inside the site's folder, select all the files and zip them. Do not zip the parent folder, so that
index.htmlsits at the root of the ZIP. - Choose Upload ZIP, up to 50 MB.
If the project has a package.json, leave out node_modules, since it is heavy and reinstalled on the server. Leave out .env files with passwords as well.
Uploads are stored in a repository in your own GitHub account, which is why you still sign in with GitHub. Your code always has a saved copy.
Method 3: Deploy from GitHub
This is the long-term choice. Every git push updates the site, and you have a history to go back to when something breaks.
Push your code the first time
Create a repository on github.com, then run this in your project folder:
git init
git add .
git commit -m "first version"
git branch -M main
git remote add origin https://github.com/you/your-repo.git
git push -u origin main
First make sure .gitignore keeps heavy folders and secrets out:
node_modules
.env
.next
dist
If you pushed an API key by accident, deleting the file is not enough, because the key stays in the history. Revoke it and create a new one.
Deploy
- Sign in to VibeVN with GitHub.
- Open a new deployment, go to My GitHub, and choose the repository and branch.
- Review the plan, fill in environment variables, and deploy.
The steps are covered in detail in how to deploy a vibe coded website. For a repository in another account or on another Git service, use Git URL, which may need a read-only deploy key.
Which guide do you need next?
- A Next.js app: Next.js hosting
- Express, NestJS or Fastify: Node.js hosting
- Built with Lovable or Bolt: deploying Lovable, Bolt, v0 and Cursor projects
After your site is online
- Open it on your phone and test the inner pages.
- Add your own domain if you have one. HTTPS is issued automatically.
- Register the site in Google Search Console if you want it found on Google.
Frequently asked questions
Can I deploy a private repository?
Yes. Signing in with GitHub lets you grant VibeVN read access to your repositories, including private ones.
Why does it work locally but fail after deploying?
Usually a missing environment variable, wrong upper or lower case in a file path, or a missing package. Fixing Next.js build errors covers each case, and most of it applies to other Node.js projects too.
What does hosting cost?
See the pricing page for current plans. New accounts get a 7-day Starter trial.


