Skip to content

aoxborrow/jekyll-ansible-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jekyll-Ansible-Vagrant Starter Pack

Description

This is a starter pack for quickly developing a new Jekyll project locally with Vagrant, which is then easily deployed with Github Pages. It is based on a stock Ubuntu 14.04 base image, and uses Ansible to install and configure the basic services you'll need:

  • Ruby 2.2 & Bundler
  • Github-Pages gem (this includes Jekyll)
  • Node.js (Jekyll requirement)

Features

  • fully self-contained, installs Ansible within the VM
  • develop with local Jekyll server, then deploy to Github Pages
  • update Github Pages dependencies with vagrant provision

Quick start, developing locally

  1. Install Vagrant (Requires 1.8.2+)

  2. Clone this repo:

    git clone git@github.com:paste/jekyll-ansible-vagrant.git
    
  3. Modify your computer's local /etc/hosts:

    192.168.33.33   jekyll.local
    
  4. Build your Vagrant VM:

    vagrant up
  5. Log into the VM and start local Jekyll server:

    vagrant ssh
    cd /vagrant
    jekyll serve --host 0.0.0.0 --port 80
  6. Visit your app:

    http://jekyll.local
    
  7. Profit ✔️