2017-07-10 23:42:40 +08:00
|
|
|
require 'resque/tasks'
|
|
|
|
|
|
|
|
task "resque:setup" => :environment do
|
|
|
|
props = BigBlueButton.read_props
|
|
|
|
redis_host = props['redis_host']
|
|
|
|
redis_port = props['redis_port']
|
|
|
|
Resque.redis = "#{redis_host}:#{redis_port}"
|
|
|
|
end
|
|
|
|
|
|
|
|
task :environment do
|
|
|
|
require File.expand_path('../lib/recordandplayback', __FILE__)
|
|
|
|
require File.expand_path('../scripts/rap-archive-worker', __FILE__)
|
2017-07-11 05:18:39 +08:00
|
|
|
require File.expand_path('../scripts/rap-sanity-worker', __FILE__)
|
|
|
|
require File.expand_path('../scripts/rap-process-worker', __FILE__)
|
|
|
|
require File.expand_path('../scripts/rap-publish-worker', __FILE__)
|
2017-07-10 23:42:40 +08:00
|
|
|
end
|