This blog is generated using Jekyll a static site generator and hosted as a FreeBSD DigitalOcean Droplet. I selected Digital Ocean as it was the only service I could find that supported FreeBSD. Another popular option is to use Github pages in concert with Jekyll as described here, however after reading through the setup, I thought it was simpler to perform the hosting myself. While reading the documentation, I discovered an interesting Jekyll plugin for integrating Github repositories which I may incorporate in the future.

As noted before, this blog is hosted using FreeBSD and I created a simple script to install the Jekyll dependencies. Also, I opted to try nginx this time over Apache to host the content generated by Jekyll. Once the install script is run on FreeBSD the steps I took to host the blog are:

Clone the repo to a directory called ~/Git

git clone https://github.com/yancyribbens/yancylol.git ~/Git

Build the site

cd ~/Git/yancylol && jekyll build

Make a directory for hosting

mkdir -p /data/www

Make a symlink from the hosted directory to the site build location

ln -s ~/git/yancylol/\_site /data/www/yancylol

Edit nginx.conf

vim /usr/local/etc/nginx/nginx.conf

Add a server block

server {
    location / {
        root /data/www;
    }
}

Start the service

service nginx onestart