Building Jekyll Build Environment with Vagrant and VirtualBox
The overhead of having to manually configure the code is more than offset by the simplicity and control it brings.
As a Windows user however, setting up a native build environment can be painful so I’ve written this quick guide on setting up a jekyll environment on a Virtual Linux host.
To get started, download the installers and install with the default settings.
I’ve created a github repository containing the Vagrant configuration file and a few other scripts which can be used as a base.
To get this using git, type:
git clone email@example.com:qubika/vagrant-jekyll.git
or alternatively just download the zip file.
Now, cd into that directory and start up the Vagrant vm:
cd vagrant-jekyll vagrant up
Finally, you can ssh into the vm and do all your Jekyll-related work in there:
The Vagrant vm is configured to forward port 8124 by default. So you can start a Jekyll server like so:
cd /jekyll-src jekyll server --host=0.0.0.0 --force-polling -P 8124
And then navigate to localhost:8124 on your host box.