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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.