Load env on deploy

This commit is contained in:
Artem Chernikov 2014-07-17 10:39:49 +02:00 committed by Chrisbr
parent ff76230b39
commit a202882f65

View file

@ -43,7 +43,7 @@ task :deploy => :environment do
end
desc 'Notifies the exception handler of the deploy.'
task :notify_errbit do
task :notify_errbit => :environment 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}"