Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 14 lines (10 sloc) 0.662 kb
9084398 @saberma init rails.
saberma authored
1 # Add your own tasks in files placed in lib/tasks ending in .rake,
2 # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
4 require File.expand_path('../config/application', __FILE__)
5 require 'rake'
6
44ac0da @saberma add ts-resque-delta gem.
saberma authored
7 require 'thinking_sphinx/deltas/resque_delta/tasks'
6fd77b1 @saberma add resque rake.
saberma authored
8 require 'resque/tasks'
f9dfb48 @saberma generate theme archieve file. #149.
saberma authored
9 task "resque:setup" => :environment do
10 Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } # 第二次执行resque任务时失败 PGError: ERROR: prepared statement "a3" already exists 参考 http://j.mp/rpVqhc http://j.mp/rqj9CQ ;Rails已经打了补丁,未发布版本 http://j.mp/ntPQMr
11 end
6fd77b1 @saberma add resque rake.
saberma authored
12
13 Shopqi::Application.load_tasks
Something went wrong with that request. Please try again.