GSA/jekyll-rebuilder

Name: jekyll-rebuilder

Owner: U.S. General Services Administration

Description: Github webhook compatible jekyll site rebuilder

Forked from: FuhuXia/jekyll-rebuilder

Created: 2017-06-06 05:16:38.0

Updated: 2017-06-06 05:16:40.0

Pushed: 2017-08-29 05:54:17.0

Homepage: null

Size: 6

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

jekyll-rebuilder

A very small ruby gem to rebuild jekyll websites in response to a github webhook.

Run it in the root of the directory that contains the jekyll site checkout like follows:

jekyll-rebuilder --port 8000 --secret abcdefghijk &

This will then listen on http://0.0.0.0:8000/abcdefghijk/ and when that URL is hit it will do a git pull in its current directory, and run jekyll build.

If there is a file called _drafts_config.yml in the root directory jekyll build will be invoked a second time using this config file with the --drafts flag. This allows you to automatically refresh a draft version of the site to preview posts ahead of time without requiring the ability to run jekyll serve on the machine you are writing on.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.