diff --git a/lib/tasks/after_deploy.rake b/lib/tasks/after_deploy.rake index 16d3707c5021641e11654c5793ed308ef593842b..cbed7d2aff3039aad833b111f27ccae5f146466e 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 4dc4c6b6dfc520beb6a3ea3013af80a04371bdec..841c92224fe884c3dafe55d1b4157ef4af2268a1 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