mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Attempt to fix hoptoad
This commit is contained in:
parent
2068d25d84
commit
1b51b15d18
2 changed files with 11 additions and 3 deletions
|
|
@ -34,9 +34,17 @@ task :deploy => :environment do
|
|||
invoke :'bundle:install'
|
||||
invoke :'rails:db_migrate'
|
||||
invoke :'rails:assets_precompile'
|
||||
invoke :notify_errbit
|
||||
|
||||
to :launch do
|
||||
queue "touch #{deploy_to}/tmp/restart.txt"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
desc 'Notifies the exception handler of the deploy.'
|
||||
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}"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue