Created
January 15, 2013 22:58
-
-
Save adamrunner/4542968 to your computer and use it in GitHub Desktop.
working resque.rake file for newrelic_rpm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# load the Rails app all the time | |
require "resque/tasks" | |
require "resque_scheduler/tasks" | |
require "newrelic_rpm" | |
ENV["NEWRELIC_ENABLE"] = "true" | |
task "resque:setup" => :environment do | |
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection; NewRelic::Agent.manual_start :license_key=>"04bba1b0698194f36a96c319818b19818b614af00a955e", :app_name => "Background Workers" } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment