Skip to content

Commit

Permalink
add stash to before/after deploy so you dont lose in progress h@x
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwell committed Jan 20, 2012
1 parent f0a698d commit f3120b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/after_deploy.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions lib/tasks/before_deploy.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f3120b3

Please sign in to comment.