<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports.github.io.
</pre>
<p><a href="https://github.com/macports/macports.github.io/commit/3c711fd1a7dc844a364d29c1cdd61877b0a13964">https://github.com/macports/macports.github.io/commit/3c711fd1a7dc844a364d29c1cdd61877b0a13964</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 3c711fd1a7dc844a364d29c1cdd61877b0a13964
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sat May 1 22:27:41 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> Update local test instructions
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Update instructions to use Ruby 2.7 like GitHub pages does now. Don't
</span><span style='display:block; white-space:pre;color:#404040;'> suggest installing bundler separately since it comes with Ruby now.
</span>---
README.md | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/README.md b/README.md
</span><span style='display:block; white-space:pre;color:#808080;'>index 17a24ca..5c0d9ad 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/README.md
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/README.md
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,29 +8,25 @@ You should test any changes to the web site locally before pushing.
</span>
In the Terminal, `cd` to the root directory of your clone.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-### Install Ruby, bundler, and the GitHub Pages gems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+### Install Ruby and the GitHub Pages gems
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Make sure you have Ruby 2.2.2 or greater:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+[GitHub Pages currently uses Ruby 2.7.x](https://pages.github.com/versions/) so install ruby27 with MacPorts:
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- ruby --version
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo port install ruby27
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-Install the bundler gem:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Install the bundle of gems specified by this project's Gemfile:
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- gem install bundler
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Install the bundle of gems used by GitHub Pages:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- bundle install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bundle2.7 install
</span>
If it's been awhile since you installed the bundle, update it:
<span style='display:block; white-space:pre;background:#ffe0e0;'>- bundle update
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bundle2.7 update
</span>
### Test the web site
Start a local web server by running:
<span style='display:block; white-space:pre;background:#ffe0e0;'>- bundle exec jekyll serve --baseurl ''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bundle2.7 exec jekyll serve --baseurl ''
</span>
Now you can access <http://127.0.0.1:4000/news/> in your web browser to see the web site. When you make changes to your clone, your local site will automatically update. When done testing, press <kbd>Ctrl</kbd> + <kbd>C</kbd> to stop the local web server.
</pre><pre style='margin:0'>
</pre>