Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gary-liguoliang/2d7bd0f2df03efb43eba15114dd2aaff to your computer and use it in GitHub Desktop.
Save gary-liguoliang/2d7bd0f2df03efb43eba15114dd2aaff to your computer and use it in GitHub Desktop.
Setup local Jekyll environment in 10 minutes using Vagrant + VirtualBox
  1. install VirtualBox v5.1.0
  2. install Vagrant v1.9.2
  3. open command line: cd c:/tmp
  4. git clone [email protected]:guoliang-dev/jekyll-vagrant.git
  5. cd jekyll-vagrant
  6. vagrant up, it may take few minutes to start the VM. it'll download a Ubuntu 14 to your PC during first time run.
  7. ssh vagrant@localhost -p 2222 with vagrant/vagrant and execute:
  cd /vagrant  # /vagrant is the share folder pointing to folder jekyll-vagrant in the host. 
  jekyll new my-awesome-site
  cd my-awesome-site
  bundle exec jekyll serve --host 0.0.0.0
  1. access your jekyll web app from host: http://127.0.0.1:8040
  2. config & customize your local Jekyll project: c:/tmp/vagrant/my-awesone-site
  3. push your local Jekyll project c:/tmp/vagrant/my-awesone-site to Github
  4. checkout your blog via https://your-github-id.github.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment