reset soft so you dont lose your custom homepage when you deploy
This commit is contained in:
parent
73655efd53
commit
dcce2976b5
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ task :after_deploy => :environment do
|
|||
if File.exist?(File.join(Rails.root, "app", "views", "home", "_show.html.haml")) && system("git log | head -5 | grep 'custom\ landing\ page'")
|
||||
puts "-----> resetting HEAD before custom landing page commit"
|
||||
|
||||
system("git reset --hard HEAD^") ? true : fail
|
||||
system("git reset HEAD^") ? true : fail
|
||||
system("git stash pop") unless @did_not_stash
|
||||
|
||||
puts "-----> done"
|
||||
|
|
|
|||
Loading…
Reference in a new issue