# Publish your landing page

### 1. Enable GitHub pages

After pushing your latest changes, go to the project Settings > Pages

<figure><img src="https://2221554152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPCf6vtFuZEPHXJd7JfIe%2Fuploads%2FhpYjEsCq1m5RIEEJAT8w%2FScreenshot%202024-12-03%20at%2014.32.38.png?alt=media&#x26;token=3d2ee2a7-2749-4233-9d06-78b830ea8282" alt=""><figcaption><p>Project settings > pages</p></figcaption></figure>

Once in the page settings, select a branch that will be the source of your page. In our case, we will choose `master`.

Now you can click on "visit site, and you will have your landing page hosted on GitHub servers For Free, Forever. No more paying 14€ to Wix or Squarespace for a simple landing page.

### 2. Add a custom Domain

If you want a professional landing page, We strongly suggest adding a custom domain, it's as easy as adding the custom domain on the GitHub page settings:

<figure><img src="https://2221554152-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPCf6vtFuZEPHXJd7JfIe%2Fuploads%2FlPVifQQwJp5sPhYhZ6jd%2FScreenshot%202024-12-03%20at%2014.36.44.png?alt=media&#x26;token=76efafaf-98dd-4397-848e-65b6a0944c16" alt=""><figcaption><p>Add a custom domain</p></figcaption></figure>

Et Voila, every time you modify your HTML and push to the GitHub repo, your website will get updated. 🤝

### Going Further

If you liked this simple boilerplate, check Lightning Rails, the best Ruby on Rails boilerplate to build SaaS web apps in no time.

{% embed url="<https://lightningrails.com>" %}
