-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
26 lines (20 loc) · 811 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require_relative 'config/application'
require 'resque/tasks'
require 'resque/scheduler/tasks'
require 'active_scheduler'
task 'resque:setup' => :environment do
Resque.before_fork = Proc.new {
ActiveRecord::Base.establish_connection
# Open the new separate log file
# logfile = File.open(File.join(Rails.root, 'log', 'resque.log'), 'a')
# Activate file synchronization
# logfile.sync = true
# Create a new buffered logger
# Resque.logger = ActiveSupport::BufferedLogger.new(logfile)
# Resque.logger.level = Logger::DEBUG
# Resque.logger.debug "Resque Logger Initialized!"
}
end
Rails.application.load_tasks