1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Use rsync to update pages.

This commit is contained in:
Nathan Weizenbaum 2009-06-17 22:44:59 -07:00
parent 6b9f4ca5ad
commit 911fdf2ca8

View file

@ -155,13 +155,12 @@ rescue LoadError
end
task :pages do
require 'fileutils'
raise 'No ENV["PROJ"]!' unless proj = ENV["PROJ"]
sh %{git checkout #{proj}-pages}
sh %{git reset --hard origin/#{proj}-pages}
sh %{staticmatic build .}
FileUtils.mv("site", "/var/www/#{proj}-pages")
sh %{rsync -av --delete site/ /var/www/#{proj}-pages}
end
# ----- Coverage -----