mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Make sure we get out of the pages directory after updating.
This commit is contained in:
parent
b18a9ac6c9
commit
012355103e
1 changed files with 10 additions and 9 deletions
19
Rakefile
19
Rakefile
|
@ -248,17 +248,18 @@ task :pages do
|
|||
sh %{git checkout #{proj}-pages}
|
||||
sh %{git reset --hard origin/#{proj}-pages}
|
||||
|
||||
Dir.chdir("/var/www/#{proj}-pages")
|
||||
sh %{git fetch origin}
|
||||
Dir.chdir("/var/www/#{proj}-pages") do
|
||||
sh %{git fetch origin}
|
||||
|
||||
sh %{git checkout stable}
|
||||
sh %{git reset --hard origin/stable}
|
||||
sh %{git checkout stable}
|
||||
sh %{git reset --hard origin/stable}
|
||||
|
||||
sh %{git checkout #{proj}-pages}
|
||||
sh %{git reset --hard origin/#{proj}-pages}
|
||||
sh %{rake build --trace}
|
||||
sh %{mkdir -p tmp}
|
||||
sh %{touch tmp/restart.txt}
|
||||
sh %{git checkout #{proj}-pages}
|
||||
sh %{git reset --hard origin/#{proj}-pages}
|
||||
sh %{rake build --trace}
|
||||
sh %{mkdir -p tmp}
|
||||
sh %{touch tmp/restart.txt}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue