From e6477a7bc87c6f74a08b934091f150d456662958 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Wed, 20 Mar 2013 11:43:07 +0000 Subject: [PATCH] Add rake task for deploy. --- Gemfile | 2 ++ Gemfile.lock | 2 ++ Rakefile | 4 ++++ controller.rb | 2 ++ 4 files changed, 10 insertions(+) create mode 100644 Rakefile diff --git a/Gemfile b/Gemfile index 674fe64..b2e6a52 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,7 @@ source "http://rubygems.org" +gem "rake" + gem "stasis" gem "therubyracer" gem "hpricot" diff --git a/Gemfile.lock b/Gemfile.lock index 2adc6d7..280d307 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -13,6 +13,7 @@ GEM libv8 (3.3.10.4) multi_json (1.3.6) net-ssh (2.5.2) + rake (10.0.3) redcarpet (2.1.1) redis (2.2.2) sass (3.1.20) @@ -36,6 +37,7 @@ DEPENDENCIES haml hpricot net-ssh + rake redcarpet sass stasis diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..1e111a1 --- /dev/null +++ b/Rakefile @@ -0,0 +1,4 @@ +task "deploy" do + sh "git add public; git commit -m 'Deployed to gh-pages'" + sh "git subtree push --prefix public origin gh-pages" +end diff --git a/controller.rb b/controller.rb index 2abf3e9..96bbfc4 100644 --- a/controller.rb +++ b/controller.rb @@ -6,4 +6,6 @@ ignore /README\.md/ ignore /danbarbercv/ ignore /deploy.rb/ +ignore /Rakefile/ + layout "layouts/main.html.haml"