mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Fix the dynamic pages deployment, hopefully.
This commit is contained in:
parent
f21495aaf7
commit
49fdcc6006
1 changed files with 2 additions and 4 deletions
6
Rakefile
6
Rakefile
|
@ -248,11 +248,9 @@ 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 %{git fetch origin}
|
||||
sh %{git reset --hard origin/#{proj}-pages}
|
||||
sh %{rake build --trace}
|
||||
sh %{mkdir -p tmp}
|
||||
sh %{touch tmp/restart.txt}
|
||||
|
|
Loading…
Add table
Reference in a new issue