From 49fdcc600603dd55ee7dc4fb4a33d8bb1b575684 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Thu, 8 Oct 2009 22:08:22 -0700 Subject: [PATCH] Fix the dynamic pages deployment, hopefully. --- Rakefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 135ea130..234b1d68 100644 --- a/Rakefile +++ b/Rakefile @@ -248,11 +248,9 @@ task :pages do sh %{git checkout #{proj}-pages} sh %{git reset --hard origin/#{proj}-pages} - old_path = File.expand_path(".") - Dir.chdir("/var/www/#{proj}-pages") - sh %{git fetch #{old_path}} - sh %{git reset --hard FETCH_HEAD} + sh %{git fetch origin} + sh %{git reset --hard origin/#{proj}-pages} sh %{rake build --trace} sh %{mkdir -p tmp} sh %{touch tmp/restart.txt}