DEV Community

Cover image for Deploy/Host your website for free
Codeitdoc7
Codeitdoc7

Posted on • Edited on

7 1

Deploy/Host your website for free

Hey there, so you have a awesome website ready to be shared with the whole world or just looking to flex in front of friends/family🔥, but don't know how to do it. No worries I am here to help. Well there are many websites for it, but today we will be talking about Github Pages.

Why GitHub Pages?
TBH I have deployed my first website using GitHub pages, so I will able to explain it better, and it's very easy and fast too⚡.

Enough chitchat tell me how to deploy🙄
Fair enough, let's get the website up in no time-

  • Go to the repository (If you don't know how to create one this will help).

  • Click on settings

Repo Settings

  • Pages

Pages

  • Under Source select the branch which you want to deploy.

Branch

  • Select root folder if not preselected.

Root folder

  • Click on save.

  • Wait few seconds for it to complete the build process(You can check it in the action tab).

Action Tab

  • And Your awesome website is up on internet.

Deployed website

Deployed website is just showing readme page

  1. Just change the xyz.html file name to index.html.

  2. Problem not solved add index.md file and it will definitely fix the issue.

Note- Make sure to wait few more minutes for it to complete the build process then refresh the website.

I Got some suggestions✨
That's great I'm always looking to improve, please comment below your suggestion (s).

You are Awesome where can I Connect with you😎?
🚀Github

🌱Instagram

📨[Email] - loficode777@gmail.com

🐦[Twitter]- Soon

Buy Me A Coffee

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (3)

Collapse
 
vulcanwm profile image
Medea

Hey does GitHub pages only work with static websites?

Collapse
 
coditdoc profile image
Codeitdoc7

Yes it only supports static websites.

Collapse
 
vulcanwm profile image
Medea

okay thanks

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay