# How to create github pages clone in my server

**URL:** <https://talk.jekyllrb.com/t/how-to-create-github-pages-clone-in-my-server/5011>\
**Category:** Help\
**Created:** [September 30, 2020, 4:03am UTC](https://talk.jekyllrb.com/t/how-to-create-github-pages-clone-in-my-server/5011 "2020-09-30T04:03:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpmottathai](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/bpmottathai/32/1434_2.png) [@bpmottathai](https://talk.jekyllrb.com/u/bpmottathai)\
**Post date:** [September 30, 2020, 4:03am UTC](https://talk.jekyllrb.com/t/how-to-create-github-pages-clone-in-my-server/5011/1 "2020-09-30T04:03:46Z")

</div>

I am using github pages to deploy my jekyll websites. I would like to use my own server. Is there any installer for github pages to install it on my server?

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [September 30, 2020, 8:14pm UTC](https://talk.jekyllrb.com/t/how-to-create-github-pages-clone-in-my-server/5011/2 "2020-09-30T20:14:13Z")

</div>

Github Pages builds jekyll sites and then serves them on github domain.

You can build a jekyll site without github pages at all.

Add jekyll to your Gemfile. Run bundle install. Then build your site. Either build it on the server or build it locally and use FTP etc. to copy the built site.

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [September 30, 2020, 8:21pm UTC](https://talk.jekyllrb.com/t/how-to-create-github-pages-clone-in-my-server/5011/3 "2020-09-30T20:21:27Z")

</div>

Having said that, if you want to match the gems that are installed and used on github pages, you can list them in your Gemfile and plugins.

For example the `github-metadata` gem to get details about the repo and your github user. Or the `jekyll-seo` plugin.

Or the jekyll minima theme.

> **[Dependency versions](https://pages.github.com/versions/)**
>
> GitHub Pages uses the following dependencies and versions

If you really want to, you can install the `github-pages` gem in your Gemfile. I don’t know if it does anything itself but it does allow you to match all the github pages gems in one line.

it is very heavy though. You’ll get like 10 themes and 20 other gems which you’ll never use.

> **[github/pages-gem](https://github.com/github/pages-gem)**
>
> A simple Ruby Gem to bootstrap dependencies for setting up and maintaining a local Jekyll environment in sync with GitHub Pages - github/pages-gem

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [September 30, 2020, 8:26pm UTC](https://talk.jekyllrb.com/t/how-to-create-github-pages-clone-in-my-server/5011/4 "2020-09-30T20:26:17Z")

</div>

I use jekyll to build this site of mine locally and then copy to a server with FTP (I could build do it on an AWS server if I wanted)

> <https://github.com/MichaelCurrin/the-buckfever-underground/blob/master/Gemfile>

Nothing directly related to GH Pages is referenced in my config or Gemfile

Yet if I build the site on GH Pages (which I did before) the site would look identical to how it does now hosted somewhere else.

I hope that clarifies on what you asked.

---

<div class="post-metadata">

**Author:** ![bpmottathai](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/bpmottathai/32/1434_2.png) [@bpmottathai](https://talk.jekyllrb.com/u/bpmottathai)\
**Post date:** [October 1, 2020, 6:55am UTC](https://talk.jekyllrb.com/t/how-to-create-github-pages-clone-in-my-server/5011/5 "2020-10-01T06:55:48Z")

</div>

Thanks. I know that I need to install jekyll, git and necessary gems. But how to make it auto build (exec) when I git push from local to server. Also how to configure domain if I upload .cname file. Do I need a file like .gtlab.ci.yml

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [October 1, 2020, 8:03am UTC](https://talk.jekyllrb.com/t/how-to-create-github-pages-clone-in-my-server/5011/6 "2020-10-01T08:03:26Z")

</div>

I’m curious as to why you don’t want to use GH Pages as it does a lot of automation for you and lets you put in your own public URL. Same for [Netlify.com](http://Netlify.com). though Netlify is even more powerful with admin view option, feature branch build previews, custom gems, etc. which GH Pages doesn’t have.

---

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [October 1, 2020, 9:49am UTC](https://talk.jekyllrb.com/t/how-to-create-github-pages-clone-in-my-server/5011/7 "2020-10-01T09:49:59Z")

</div>

You haven’t said what your server is or does. At one level you could have an S3 bucket of built files and serve from your own domain. You could use GH Actions to build and push to S3.

If you have an EC2 box with Ruby, etc. running on it and you want to build and serve there, I don’t know what you can do that would be better than GH Pages.

You could do a git pull and Jekyll build if there are changes and have that run on a schedule but it feels like a waste to pull frequently. and if you do it daily you lose instant builds unless you trigger it manually.
