Skip to content

Commit

Permalink
Update the rake pages task to support dynamic pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Oct 9, 2009
1 parent ec1e894 commit f21495a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Rakefile
Expand Up @@ -248,8 +248,14 @@ 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 %{rake build --trace}
sh %{rsync -av --delete site/ /var/www/#{proj}-pages}
sh %{mkdir -p tmp}
sh %{touch tmp/restart.txt}
end
end

Expand Down

0 comments on commit f21495a

Please sign in to comment.