π Local Development Setup (by Claude Code)
Quick Start
Your site will be available at http://localhost:4000
Local URLs
- Home:
http://localhost:4000
- About:
http://localhost:4000/about.html
- Publications:
http://localhost:4000/publications.html
- Posts:
http://localhost:4000/posts/
(or browse from home)
π Note: Add .html
extension for pages locally (GitHub Pages uses clean URLs automatically)
How It Works
- β
No Ruby installation needed - Uses Docker
- β
No compilation issues - Bypasses eventmachine problems completely
- β
Looks identical to GitHub Pages - Same content, same styling
- β
Fast and reliable - Builds in ~45 seconds first run, ~15 seconds after
- β
GitHub Pages deployment unchanged - Push to deploy as always
Development Workflow
- Edit your posts, pages, or content
- Run
./serve.sh
to rebuild and serve
- View changes at
http://localhost:4000
- Test pages with
.html
extension locally
- Push to GitHub when ready (clean URLs work automatically)
Whatβs Fixed
- β
EventMachine compilation issues - Completely solved with Docker
- β
Reliable local development - Simple Python server, no routing complexity
- β
All content works - Pages, posts, images, CSS, JS all load correctly
- β
GitHub deployment unchanged - Clean URLs work on live site
Press Ctrl+C
to stop the server