The site is built with Jekyll. To preview it on your own Mac, you run a small
local web server that builds the site and serves it at a private address only
you can see (http://localhost:4000). Changes show up when you refresh.
Open Terminal (press ⌘+Space, type “Terminal”, hit Enter) and run each line:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install ruby
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc
cd "~/Desktop/mesra web/mesra-site"
gem install bundler
bundle install
cd "~/Desktop/mesra web/mesra-site"
bundle exec jekyll serve --livereload
Then open http://localhost:4000 in your browser. Leave Terminal running.
With --livereload, the page refreshes automatically each time a file is saved.
Press Ctrl+C in Terminal to stop the server when you’re done.
mesra-site.localhost:4000 to see the change.Notes:
Gemfile and Gemfile.lock are safe to commit — they pin the same versions
GitHub Pages uses, so local matches live.