# The role of jekyll build in using Github Pages

**URL:** <https://talk.jekyllrb.com/t/the-role-of-jekyll-build-in-using-github-pages/7678>\
**Category:** Uncategorized\
**Created:** [September 22, 2022, 9:47am UTC](https://talk.jekyllrb.com/t/the-role-of-jekyll-build-in-using-github-pages/7678 "2022-09-22T09:47:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbuday](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@gbuday](https://talk.jekyllrb.com/u/gbuday)\
**Post date:** [September 22, 2022, 9:47am UTC](https://talk.jekyllrb.com/t/the-role-of-jekyll-build-in-using-github-pages/7678/1 "2022-09-22T09:47:31Z")

</div>

Hi there, I have written up a description for setting up a website with Github Pages:

> **[Setting up a Github Page](https://formalisation.org/setting-up-a-github-page)**
>
> For running a GitHub Pages blog, you need mainly these:

Feel free to criticise it. I have one question: should I use

```auto
$ bundler exec jekyll build --incremental

```

or

```auto
$ bundler exec jekyll serve

```

will do this locally, and Github Pages will do this up on its server?

---

<div class="post-metadata">

**Author:** ![BillRaymond](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/billraymond/32/5963_2.png) [@BillRaymond](https://talk.jekyllrb.com/u/BillRaymond)\
**Post date:** [September 22, 2022, 3:34pm UTC](https://talk.jekyllrb.com/t/the-role-of-jekyll-build-in-using-github-pages/7678/2 "2022-09-22T15:34:27Z")

</div>

It looks like these instructions are a little off. You should consider using the official [quick start](https://jekyllrb.com/docs/), [installation](https://jekyllrb.com/docs/installation/), and [step-by-step](https://jekyllrb.com/docs/step-by-step/01-setup/) docs.

If you have GitHub Pages set up on GitHub, there is no need to build the site locally because GitHub will build the pages for you any time you update the repo.

Locally, you can use:

```auto
# Serve the website
bundle exec jekyll serve

# Serve the website and automatically refresh the browser when edits are made
# You will have to start and stop the server if you modify _config.yml
bundle exec jekyll serve --livereload

```
