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:
parent
6b9f4ca5ad
commit
911fdf2ca8
1 changed files with 1 additions and 2 deletions
3
Rakefile
3
Rakefile
|
@ -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 -----
|
||||
|
|
Loading…
Reference in a new issue