forked from ruby-china/homeland
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
21 lines (17 loc) · 645 Bytes
/
Rakefile
File metadata and controls
21 lines (17 loc) · 645 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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.expand_path('../config/application', __FILE__)
require 'rake'
RubyChina::Application.load_tasks
namespace :test do
desc "preparing config files..."
task :prepare => :init do
["config","mongoid","redis"].each do |cfgfile|
system("cp config/#{cfgfile}.yml.default config/#{cfgfile}.yml") unless File.exist?("config/#{cfgfile}.yml")
end
end
desc "start essential services.."
task :init do
system("bundle exec rake sunspot:solr:start")
end
end