mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Reset to the proper branch when updating pages.
This commit is contained in:
parent
87d9e7987a
commit
6b9f4ca5ad
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -158,7 +158,7 @@ task :pages do
|
|||
require 'fileutils'
|
||||
raise 'No ENV["PROJ"]!' unless proj = ENV["PROJ"]
|
||||
sh %{git checkout #{proj}-pages}
|
||||
sh %{git reset --hard #{proj}-pages}
|
||||
sh %{git reset --hard origin/#{proj}-pages}
|
||||
|
||||
sh %{staticmatic build .}
|
||||
FileUtils.mv("site", "/var/www/#{proj}-pages")
|
||||
|
|
Loading…
Add table
Reference in a new issue