Fix login and label. Check sync jobs and update info function.

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-05-24 17:01:00 +08:00
1 parent c062b43069
commit 3480fa2545
8 files changed
+61 -38

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
class BackupServer
@queue = :high
def self.perform()
CronMail.time_check("Going to backup Orbit").deliver
# %x[touch #{Rails.root}/tmp/restart]
end
end
-8
View File
@@ -1,8 +0,0 @@
class RestartServer
@queue = :high
def self.perform()
CronMail.time_check("Going to restarting Orbit").deliver
%x[touch #{Rails.root}/tmp/restart]
end
end
+8
View File
@@ -4,6 +4,7 @@ class SyncDb
def self.perform()
self.start_sync
self.set_admin
end
def self.start_sync
@@ -12,4 +13,11 @@ class SyncDb
%x[rake #{task} --trace >> #{Rails.root}/log/rake.log]
puts "SyncDb Synced"
end
def self.set_admin
task = 'mid_site:install_admin'
args = []
%x[rake #{task} --trace >> #{Rails.root}/log/rake.log]
puts "Admin done"
end
end