c51d457e167ddfbdcb637aec9d1834aee69f293b
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:
- Make sure Ruby is installed and up to date:
ruby -v
- If you encounter permission errors with Homebrew:
sudo chown -R $(whoami) /usr/local/Homebrew
- If bundle install fails with dependency issues:
bundle update
bundle install
- 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.
Languages
Liquid
95.3%
CSS
2.9%
Ruby
1.8%