8000 GitHub - pxg/pxg.github.io
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pxg/pxg.github.io

Repository files navigation

petegraham.co.uk

Code for petegraham.co.uk based on https://github.com/nickbalestra/kactus.

Development Setup

Option 1: Using Docker (Recommended)

  1. Build the Docker image:
docker build -t pxg-blog .
  1. Run the site locally:
docker run -p 4000:4000 -v $(pwd):/site pxg-blog bundle exec jekyll serve --host 0.0.0.0 --incremental --force_polling --livereload

This command:

  • Mounts your local directory for immediate updates
  • Enables incremental builds
  • Includes live reload for automatic browser refresh
  • Watches for file changes

The site will be available at http://localhost:4000

If you need a clean build:

  1. Stop the server (Ctrl+C)
  2. Delete the _site directory
  3. Run the command again

Option 2: Local Ruby Installation

You need Ruby 2.1.0 or higher installed for Jekyl with Github pages https://help.github.com/enterprise/2.11/user/articles/setting-up-your-github-pages-site-locally-with-jekyll/#step-1-create-a-local-repository-for-your-jekyll-site. OS X currently has Ruby 2.0 as it's built in version.

Install rvm https://rvm.io/rvm/install:

curl -sSL https://get.rvm.io | bash -s stable --ruby

Activate rvm:

source ~/.rvm/scripts/rvm

Install bundler:

gem install bundler

Install dependencies:

bundle install

Running

rvm use 2.4.1
jekyll serve

Deploying

Simply push to main:

git push
0