-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathRakefile
34 lines (28 loc) · 899 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
27
28
29
30
31
32
33
34
#!/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.expand_path('../config/application', __FILE__)
require 'sunspot/solr/railtie'
Wripe::Application.load_tasks
desc 'deploy to heroku'
task :deploy do
sh 'git push heroku master'
end
desc 'backup'
task :backup => [:environment] do
require "#{Rails.root}/lib/backup_dropbox"
DropboxBackup.backups
end
desc 'queue runner'
task :queue_runner => [:environment] do
# load for ActiveRecord::ConnectionAdapters::TransactionState
ActiveRecord::ConnectionAdapters::ClosedTransaction
ActiveRecordAsync.runner
end
desc 'test on browsers'
task :browsers do
%w(chrome safari firefox phone tablet).each do |driver|
#%w(chrome safari firefox ie).each do |driver|
sh "rake DRIVER=#{driver}"
end
end