Skip to content
Merged
Show file tree
Hide file tree
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
Binary file added Images/Images-PlantMetWikiInterface.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 34 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,45 @@ This uses the Gemfile in the repository to install:
- and any other required gems.


### 5. Serve the site locally
### 5. Serve the site locally (macOS)

### Why this setup
macOS ships with a locked “system Ruby” that often causes permission errors when installing gems.
To avoid this, use Homebrew Ruby and install gems locally in the repo.


#### 1 Install Ruby via Homebrew
```bash
brew install ruby
```

##### 2 Ensure Homebrew Ruby is used (IMPORTANT)
```bash
echo 'export PATH="$(brew --prefix ruby)/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

which ruby
ruby -v
```

If which ruby prints /usr/bin/ruby, you are still using system Ruby — fix your PATH before continuing.

#### 3 Install Bundler and dependencies (local install)
```bash
gem install bundler

bundle config set --local path vendor/bundle
bundle install
```

#### 4 Run the site locally

```bash
bundle exec jekyll serve --port 4001
```

Jekyll will print something like:
```
```bash
Server address: http://127.0.0.1:4001/
Server running... press ctrl-c to stop.
```
Expand Down
Loading
Loading