From 1c909e60f66bfcd181736c5cd91052fae64919f8 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Wed, 12 Nov 2014 13:08:58 +0100 Subject: [PATCH] Make it possible to call :notify_errbit with mina manually --- config/deploy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/deploy.rb b/config/deploy.rb index 1fec1beb..4821ea37 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -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'