Skip to content

Simple Vagrant file to build a GitHub Pages-compatible Jekyll environment. Uses the "official" github-pages gem.

Notifications You must be signed in to change notification settings

thruflo/vagrant-jekyll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Vagrant file for a GitHub Pages-compatible Jekyll environment

Simple Vagrant file to build a GitHub Pages-compatible Jekyll environment. Uses the "official" github-pages gem. Use this environment to build and test your GitHub Pages-based Jekyll sites without polluting your host box.

How to use

First, make sure you've installed Vagrant and VirtualBox.

Next, clone this repo:

git clone [email protected]:rjsilk/vagrant-github-pages.git

Now, cd into that directory and start up the Vagrant vm:

cd vagrant-github-pages
vagrant up

Finally, you can ssh into the vm and do all your Jekyll-related work in there:

vagrant ssh

Port forwarding

The Vagrant vm is configured to forward port 8124 by default. So you can start a Jekyll server like so:

jekyll server --watch -P 8124

And then navigate to localhost:8124 on your host box.

Note on SSH-forwarding

The Vagrantfile enables ssh-forwarding so that you can use your host ssh keys to authenticate with github. Make sure to add you keys to the agent with ssh-add before running vagrant ssh if your keys aren't automatically added to the agent.

About

Simple Vagrant file to build a GitHub Pages-compatible Jekyll environment. Uses the "official" github-pages gem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published