Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note for webrick under "Testing your GitHub Pages site locally with Jekyll" #21557

Merged
merged 2 commits into from
Oct 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ Before you can use Jekyll to test a site, you must:
> Server address: http://127.0.0.1:4000/
> Server running... press ctrl-c to stop.
```
3. To preview your site, in your web browser, navigate to `http://localhost:4000`.

{% note %}
{% note %}

**Note:** If you are using Ruby 3.0 and Jekyll 4.2.x or older, you will need to add the `webrick` gem to your project's Gemfile prior to running `bundle install`.
**Note:** If you've installed Ruby 3.0 or later (which you may have if you installed the default version via Homebrew), you might get an error at this step. That's because these versions of Ruby no longer come with `webrick` installed.

To fix the error, try running `bundle add webrick`, then re-running `bundle exec jekyll serve`.
{% endnote %}

{% endnote %}
3. To preview your site, in your web browser, navigate to `http://localhost:4000`.

## Updating the {% data variables.product.prodname_pages %} gem

Expand Down