🚀 Setup Guide for Windows
🚀 Setup Guide for Windows
This guide will help you set up your Jekyll development environment on Windows.
Option 1: Quick Setup (Recommended)
Step 1: Run the Setup Script
- Right-click on
setup.ps1in your project folder - Select “Run with PowerShell”
- If prompted, type “Y” to allow script execution
Step 2: Start the Development Server
After the setup completes, run:
bundle exec jekyll serve
Step 3: View Your Website
Open your browser and go to: http://localhost:4000
Option 2: Manual Setup
Step 1: Install Chocolatey
Open PowerShell as Administrator and run:
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Step 2: Install Ruby
choco install ruby -y
Step 3: Install Jekyll and Bundler
gem install jekyll bundler
Step 4: Install Project Dependencies
bundle install
Step 5: Start the Server
bundle exec jekyll serve
Option 3: Using WSL (Windows Subsystem for Linux)
If you prefer a Linux environment:
Step 1: Open WSL
wsl
Step 2: Install Ruby and Dependencies
sudo apt update
sudo apt install -y ruby-full build-essential
Step 3: Install Jekyll
gem install jekyll bundler
Step 4: Navigate to Your Project
cd /mnt/c/Users/dumb_/Documents/GitHub/umberH.github.io
Step 5: Install Dependencies and Start Server
bundle install
bundle exec jekyll serve --host 0.0.0.0
Troubleshooting
Common Issues:
- “bundle is not recognized”
- Make sure Ruby is installed:
ruby --version - Install bundler:
gem install bundler
- Make sure Ruby is installed:
- Permission Errors
- Run PowerShell as Administrator
- Or use WSL for a Linux environment
- Port Already in Use
- Use a different port:
bundle exec jekyll serve --port 4001
- Use a different port:
- SSL Certificate Errors
- Add
--incrementalflag:bundle exec jekyll serve --incremental
- Add
Useful Commands:
- Build site:
bundle exec jekyll build - Serve with drafts:
bundle exec jekyll serve --drafts - Serve with incremental build:
bundle exec jekyll serve --incremental - Check Jekyll version:
jekyll --version
Next Steps
After successful setup:
- Customize Content: Edit files in
_data/folder - Add Images: Place images in
assets/images/ - Update Projects: Modify
_data/projects.yml - Deploy: Push to GitHub for automatic deployment
Support
If you encounter issues:
- Check the Jekyll documentation
- Ensure all dependencies are installed
- Try using WSL for a more stable environment
Happy coding! 🎉