Make it possible to call :notify_errbit with mina manually

This commit is contained in:
Henne Vogelsang 2014-11-12 13:08:58 +01:00
parent 97bf86454e
commit 1c909e60f6

View file

@ -54,7 +54,7 @@ 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}"
queue "cd #{deploy_to}/current && RAILS_ENV=production bundle exec rake hoptoad:deploy TO=#{rails_env} REVISION=#{revision} REPO=#{repository} USER=#{user}"
end
desc 'Back ups the database'