Merge pull request #435 from openSUSE/review_140807_add_cleanup_for_mina
Remove syck, add notifier back, add cleanup on deploy
This commit is contained in:
commit
a2089a09fa
2 changed files with 4 additions and 5 deletions
|
|
@ -1,6 +1,3 @@
|
||||||
require 'rubygems'
|
|
||||||
require 'yaml'
|
|
||||||
YAML::ENGINE.yamler = 'syck'
|
|
||||||
# Set up gems listed in the Gemfile.
|
# Set up gems listed in the Gemfile.
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,16 +34,18 @@ task deploy: :environment do
|
||||||
invoke :'bundle:install'
|
invoke :'bundle:install'
|
||||||
invoke :'rails:db_migrate'
|
invoke :'rails:db_migrate'
|
||||||
invoke :'rails:assets_precompile'
|
invoke :'rails:assets_precompile'
|
||||||
#invoke :notify_errbit
|
invoke :notify_errbit
|
||||||
|
|
||||||
to :launch do
|
to :launch do
|
||||||
queue "touch #{deploy_to}/tmp/restart.txt"
|
queue "touch #{deploy_to}/tmp/restart.txt"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
invoke :'deploy:cleanup'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Notifies the exception handler of the deploy.'
|
desc 'Notifies the exception handler of the deploy.'
|
||||||
task notify_errbit: :environment do
|
task :notify_errbit do
|
||||||
revision = `git rev-parse HEAD`.strip
|
revision = `git rev-parse HEAD`.strip
|
||||||
user = ENV['USER']
|
user = ENV['USER']
|
||||||
queue "bundle exec rake hoptoad:deploy TO=#{rails_env} REVISION=#{revision} REPO=#{repository} USER=#{user}"
|
queue "bundle exec rake hoptoad:deploy TO=#{rails_env} REVISION=#{revision} REPO=#{repository} USER=#{user}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue