Files
project-behind-the-desk/README.md
T

2.0 KiB

Project Behind the Desk

Description

A Jekyll website

Getting Started

Dependencies

Head to this website to know more about jekyll https://jekyllrb.com/docs/

Installing

First, install Homebrew if you don't already have it:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install rbenv and ruby-build:

brew install rbenv ruby-build

Add rbenv to your shell:

echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc
# Or for bash
# echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc

Restart your terminal or source your profile:

source ~/.zshrc  # or ~/.bashrc

Install the latest stable Ruby version:

rbenv install 3.2.2  # or any newer version

Set it as your global Ruby version:

rbenv global 3.2.2

Verify the installation:

ruby -v

Install bundler:

gem install bundler

Navigate back to your project and try running bundler again:

bundle install
bundle exec jekyll serve --livereload

Executing program

After installation, you can run the Jekyll site locally:

  • With live reload (automatically refreshes the browser when files change):
bundle exec jekyll serve --livereload
  • Without live reload:
bundle exec jekyll serve

Once the server is running, you can view the site by opening a browser and navigating to:

http://localhost:4000

Troubleshooting

If you encounter any issues during installation or execution:

  1. Make sure Ruby is installed and up to date:
ruby -v
  1. If you encounter permission errors with Homebrew:
sudo chown -R $(whoami) /usr/local/Homebrew
  1. If bundle install fails with dependency issues:
bundle update
bundle install
  1. If you see "command not found: jekyll", ensure Jekyll is properly installed:
gem install jekyll
gem install bundler

For more information, refer to the Jekyll documentation.