system preference
This commit is contained in:
1 parent
62fa589e8a
commit
b198b1a17b
19 files changed
+251
-83
No files matched your search
@@ -14,6 +14,13 @@ class Admin::SitesController < OrbitBackendController
|
||||
# @site = Site.new
|
||||
# end
|
||||
|
||||
def show_system_preference
|
||||
@git_commit_list_file = File.new(OrbitSystemPreference::GitCommitListPath, "r") rescue nil
|
||||
@db_backup_list_file = File.new(OrbitSystemPreference::ArchiveDbListPath, "r") rescue nil
|
||||
@resque_logs_file = File.new(OrbitSystemPreference::ResqueLogFile, "r") rescue nil
|
||||
@site = Site.first
|
||||
end
|
||||
|
||||
def update
|
||||
@site.update_attributes(params[:site])
|
||||
site_restart
|
||||
|
||||
Reference in new issue
Block a user