name: mcscatblog-local-server description: Start the local Jekyll dev server and open a post in the browser
Local Dev Server
Start the Jekyll development server for the blog.
Steps
- Check if the server is already running at
http://127.0.0.1:4000/mcscatblog/ - If not running:
- Check if dependencies are installed by running
bundle check. If that fails, run the platform-appropriate setup script:- Mac:
bash tools/setup/mac/install.sh - Windows:
powershell tools/setup/win/install.ps1
- Mac:
- Run
./tools/run.shin the background
- Check if dependencies are installed by running
- Wait for the server to be ready (poll until HTTP 200)
- If an argument is provided (a post slug or filename), open that post's URL. Otherwise, open the homepage.
The server runs at http://127.0.0.1:4000/mcscatblog/ with LiveReload enabled.
Posts are at http://127.0.0.1:4000/mcscatblog/posts/<slug>/ where <slug> is the filename without the date prefix and .md extension.