xycode + docker + jekyll

requirement

config setup

download xycode config for docker-jekyll

cd ~/.xycode && curl -O https://raw.githubusercontent.com/exiahuang/xycode-config/master/linux/xycode.docker-jekyll.json

start to develope jekyll in docker

  1. new a jekyll project : use docker:jekyll:new:project
  2. create a docker container : use docker:jekyll:create container
  3. open jekyll server : use docker:jekyll:serve, open http://localhost:4000/
  4. if you want to use commmand below, please install jekyll/jekyll-compose
    • docker:jekyll:new:page
    • docker:jekyll:new:post
    • docker:jekyll:new:draft

Add this line to your application's Gemfile: gem 'jekyll-compose', group: [:jekyll_plugins] And then execute: \$ bundle

New Project

xycode-docker-jekyll-new-project

Open serve

xycode-docker-jekyll-serve

change ~/.xycode/xycode.docker-jekyll.json config file, define your command.