make it possible to run rake tasks (the other tasks like delayed job etc. are included by the gems' railties)
parent
7d174fed9f
commit
544614e9b7
@ -1,23 +1,7 @@ |
||||
#!/usr/bin/env rake |
||||
# 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(File.join(File.dirname(__FILE__), 'config', 'boot')) |
||||
require File.expand_path('../config/application', __FILE__) |
||||
|
||||
require 'rake' |
||||
require 'rake/testtask' |
||||
|
||||
begin |
||||
# loading task with rake >= 0.9 |
||||
require 'rdoc/task' |
||||
rescue LoadError |
||||
# loading task with rake < 0.9 |
||||
require 'rake/rdoctask' |
||||
end |
||||
|
||||
require 'tasks/rails' |
||||
|
||||
begin |
||||
require 'delayed/tasks' |
||||
rescue LoadError |
||||
STDERR.puts "Run `rake gems:install` to install delayed_job" |
||||
end |
||||
OpenProject::Application.load_tasks |
||||
|
Loading…
Reference in new issue