Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't load entire environment for deploy task

closes #110
  • Loading branch information...
commit c92688642063452719b4a52ce45fb669ef0c9f26 1 parent 8fdefb8
@shime shime authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/airbrake/shared_tasks.rb
View
3  lib/airbrake/shared_tasks.rb
@@ -1,7 +1,8 @@
namespace :airbrake do
desc "Notify Airbrake of a new deploy."
- task :deploy => :environment do

Thanx for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ task :deploy do
require 'airbrake_tasks'
+ load File.join(Rails.root, 'config', 'initializers','airbrake.rb') if defined?(Rails.root)
@exviva
exviva added a note

This file may not exist in Rails.root - in our case it's located in a Rails engine, which we mount to multiple Rails apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
AirbrakeTasks.deploy(:rails_env => ENV['TO'],
:scm_revision => ENV['REVISION'],
:scm_repository => ENV['REPO'],
Please sign in to comment.
Something went wrong with that request. Please try again.