Comment unused code into Download model
This commit is contained in:
parent
fb6b25bc82
commit
3a8f928efc
|
@ -4,11 +4,11 @@ class Download < ActiveRecord::Base
|
||||||
default_scope order(:name)
|
default_scope order(:name)
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def rotate_nginx_log
|
#def rotate_nginx_log
|
||||||
system("sudo mv #{ APP_CONFIG['nginx_log'] } #{ PREV_LOG_FILE }")
|
# system("sudo mv #{ APP_CONFIG['nginx_log'] } #{ PREV_LOG_FILE }")
|
||||||
#system("sudo kill -USR1 `cat #{ APP_CONFIG['nginx_pid'] }`")
|
# #system("sudo kill -USR1 `cat #{ APP_CONFIG['nginx_pid'] }`")
|
||||||
system("sudo /opt/nginx/sbin/nginx -s reload")
|
# system("sudo /opt/nginx/sbin/nginx -s reload")
|
||||||
end
|
#end
|
||||||
|
|
||||||
def parse_nginx_log
|
def parse_nginx_log
|
||||||
File.open(PREV_LOG_FILE) do |log|
|
File.open(PREV_LOG_FILE) do |log|
|
||||||
|
@ -27,7 +27,7 @@ class Download < ActiveRecord::Base
|
||||||
|
|
||||||
def parse_and_remove_nginx_log
|
def parse_and_remove_nginx_log
|
||||||
parse_nginx_log
|
parse_nginx_log
|
||||||
system("rm -f #{PREV_LOG_FILE}")
|
#system("rm -f #{PREV_LOG_FILE}")
|
||||||
end
|
end
|
||||||
|
|
||||||
def increase(opts={})
|
def increase(opts={})
|
||||||
|
|
Loading…
Reference in New Issue