From 016261d3d0bde2d2bb3bcda487ccc04b9a5c3228 Mon Sep 17 00:00:00 2001 From: James Walker Date: Mon, 2 Jan 2012 23:51:35 -0500 Subject: [PATCH] simple rakefile for deployment --- Rakefile | 21 +++++++++++++++++++++ _config.yml | 5 +---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 Rakefile diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..86be618 --- /dev/null +++ b/Rakefile @@ -0,0 +1,21 @@ +task :default => :server + +desc 'Build site with Jekyll' +task :build do + jekyll +end + +desc 'Build and start server with --auto' +task :server do + jekyll '--server --auto' +end + +desc 'Build and deploy' +task :deploy => :build do + sh 'rsync -rtzh --delete _site/ walkah.net:/var/www/walkah.net/' +end + +def jekyll(opts = '') + sh 'rm -rf _site' + sh 'jekyll ' + opts +end diff --git a/_config.yml b/_config.yml index 4bd0e7e..141b9bd 100644 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,4 @@ pygments: true lsi: false markdown: rdiscount permalink: blog/:title -paginate: 10 -pagination_dir: blog -exclude: Gemfile, Gemfile.lock - +exclude: Gemfile, Gemfile.lock, Rakefile