diff --git a/lib/tasks/after_deploy.rake b/lib/tasks/after_deploy.rake index 16d3707c5..cbed7d2af 100644 --- a/lib/tasks/after_deploy.rake +++ b/lib/tasks/after_deploy.rake @@ -6,6 +6,7 @@ task :after_deploy => :environment do puts "-----> resetting HEAD before custom landing page commit" system("git reset --hard HEAD^") ? true : fail + system("git stash pop") ? true : fail puts "-----> done" end diff --git a/lib/tasks/before_deploy.rake b/lib/tasks/before_deploy.rake index 4dc4c6b6d..841c92224 100644 --- a/lib/tasks/before_deploy.rake +++ b/lib/tasks/before_deploy.rake @@ -7,6 +7,10 @@ task :before_deploy => :environment do puts "-----> including custom landing page in a temp commit" + + pp @app_settings + + system("git stash") ? true : fail system("git add app/views/home/_show.html.haml -f") ? true : fail system("git commit -m 'adding custom landing page for heroku'") ? true : fail