From 0fe8c76c9bcb0dc3fc585d7d38a86b5b885b7b56 Mon Sep 17 00:00:00 2001 From: Artem Chernikov Date: Thu, 7 Aug 2014 10:30:34 +0200 Subject: [PATCH] Remove syck, add notifier back, add cleanup on deploy --- config/boot.rb | 3 --- config/deploy.rb | 6 ++++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/boot.rb b/config/boot.rb index d2a5e451..5e5f0c1f 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -1,6 +1,3 @@ -require 'rubygems' -require 'yaml' -YAML::ENGINE.yamler = 'syck' # Set up gems listed in the Gemfile. ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) diff --git a/config/deploy.rb b/config/deploy.rb index d8c2adf8..756e7bae 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -34,16 +34,18 @@ task deploy: :environment do invoke :'bundle:install' invoke :'rails:db_migrate' invoke :'rails:assets_precompile' - #invoke :notify_errbit + invoke :notify_errbit to :launch do queue "touch #{deploy_to}/tmp/restart.txt" end + + invoke :'deploy:cleanup' end end desc 'Notifies the exception handler of the deploy.' -task notify_errbit: :environment do +task :notify_errbit do revision = `git rev-parse HEAD`.strip user = ENV['USER'] queue "bundle exec rake hoptoad:deploy TO=#{rails_env} REVISION=#{revision} REPO=#{repository} USER=#{user}"