Your site is a Jekyll-based GitHub Pages site. To test changes locally, you need to run Jekyll’s built-in development server on your machine.
First, verify you have Ruby and Bundler installed:
ruby --version
bundle --version
If either command fails, you’ll need to install them first (see Installation section below).
cd /Users/qasaryounis/Desktop/qycowebsite/qasar.github.io
Install all required gems (Jekyll and plugins) specified in your Gemfile:
bundle install
This will install:
Important: Use the local config file so images load from your local assets folder:
bundle exec jekyll serve --config _config.yml,_config_local.yml
Or the shorter version:
bundle exec jekyll s --config _config.yml,_config_local.yml
Note: The _config_local.yml file sets the URL to empty for local development, so images will use relative paths (/assets/...) instead of the production URL (https://qy.co/assets/...). This file is in .gitignore so it won’t affect your production site.
Once the server starts, you’ll see output like:
Server address: http://127.0.0.1:4000/
Open your browser and navigate to: http://localhost:4000 or http://127.0.0.1:4000
books.md, style.scss, etc.)Press Ctrl + C in the terminal to stop the Jekyll server when you’re done testing.
To enable automatic browser refresh on changes, add the --livereload flag:
bundle exec jekyll serve --livereload
# Install Homebrew if you don't have it
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Ruby
brew install ruby
# Install Bundler
gem install bundler
If you prefer version managers, you can use rbenv or rvm to manage Ruby versions.
Issue: “Could not locate Gemfile”
qasar.github.io)Issue: “Permission denied” errors
bundle install --user-install or use sudo (not recommended)Issue: Port 4000 already in use
bundle exec jekyll serve --port 4001Issue: Changes not showing
Issue: “mkmf.rb can’t find header files for ruby” or “Failed to build gem native extension”
xcode-select --install and follow the GUI prompts to complete installationbundle install againIssue: Ruby version too old (requires Ruby >= 3.0)
brew install ruby (then restart terminal)rbenv install 3.0.0 && rbenv global 3.0.0github-pages gem which matches GitHub Pages environment exactly_config.yml is already configured correctly for Jekyll