How to Preview the Website Locally
How to Preview the Website Locally
This is a Jekyll static site. Here’s how to preview it locally on Windows, Linux, or macOS:
Prerequisites
Installing Ruby
Choose your operating system:
Windows
- Install Ruby using winget (Windows Package Manager):
winget install RubyInstallerTeam.RubyWithDevKit.3.3 --accept-package-agreements --accept-source-agreementsOR download manually:
- Download from: https://rubyinstaller.org/
- Choose the Ruby+Devkit version for Windows
- During installation, check “Add Ruby executables to your PATH”
- Verify installation:
ruby --version
Linux (Ubuntu/Debian)
- Install Ruby and build dependencies:
sudo apt update sudo apt install ruby-full build-essential zlib1g-dev - Verify installation:
ruby --version
For other Linux distributions:
- Fedora/RHEL:
sudo dnf install ruby ruby-devel gcc make - Arch Linux:
sudo pacman -S ruby - openSUSE:
sudo zypper install ruby-devel gcc make
macOS
- Using Homebrew (recommended):
brew install ruby - OR using the system Ruby (usually pre-installed):
ruby --versionNote: If you use Homebrew, you may need to add it to your PATH. Add this to your
~/.zshrcor~/.bash_profile:export PATH="/opt/homebrew/opt/ruby/bin:$PATH" - Install Xcode Command Line Tools (if not already installed):
xcode-select --install
Installing Bundler
Bundler usually comes with Ruby, but if needed:
gem install bundler
Windows: Run in PowerShell
Linux/Mac: Run in your terminal
Steps to Preview
These steps work on all platforms:
- Navigate to the project directory:
cd path/to/auralis-partners.github.io - Install dependencies:
bundle installThis will install Jekyll and all required gems from the Gemfile.
- Start the Jekyll server:
bundle exec jekyll serve - Open your browser:
- The site will be available at:
http://localhost:4000 - Jekyll will automatically rebuild when you make changes to files
- The site will be available at:
Optional: Watch for Changes
The jekyll serve command automatically watches for file changes and rebuilds. To see verbose output:
bundle exec jekyll serve --verbose
To specify a different port:
bundle exec jekyll serve --port 4001
Troubleshooting
- If
bundlecommand is not found: Make sure Ruby is installed and added to your PATH- Windows: Restart your terminal or run:
refreshenv - Linux/Mac: Make sure Ruby’s bin directory is in your PATH (usually
/usr/local/binor~/.gem/ruby/x.x.x/bin)
- Windows: Restart your terminal or run:
-
If port 4000 is in use: Use a different port with
bundle exec jekyll serve --port 4001 -
If dependencies fail: Try running
bundle updatefirst - Linux: “zlib not found” error: Install zlib development headers:
sudo apt install zlib1g-dev # Ubuntu/Debian - macOS: “Unable to build native extensions”: Make sure Xcode Command Line Tools are installed:
xcode-select --install - Permission errors on Linux/Mac: Avoid using
sudowith gem install. If needed, use a Ruby version manager likerbenvorrvm
Stop the Server
Press Ctrl+C (or Cmd+C on Mac) in the terminal to stop the Jekyll server.
Additional Resources
- Jekyll Documentation: https://jekyllrb.com/docs/
- Ruby Installation Guide: https://www.ruby-lang.org/en/documentation/installation/