fix
新聞與公告QA-權限設定--優先處理3.一般發佈新聞&公告人,應該只能看到自己發佈的新聞&公告,但是目前可以看到全部,而且可以刪除其他人的公告.至少要不能刪除別人的公告
新聞與公告QA-編輯問題-發佈新聞時,發佈單位預設為請選擇
新聞與公告QA-編輯問題-公告模組請移除 Subtitle 欄位
put rb-readline only in Linux
make app_manager destroy after user deletion. may need to run:
AppManager.all.collect{|am| am if am.user.nil? }.delete_if {|x| x == nil}.each{|am| am.destroy}
for clean up DB.
This commit is contained in:
1 parent
a36f73bafc
commit
ffd95ee1fd
16 files changed
+49
-37
No files matched your search
+4
-4
@@ -2,7 +2,7 @@
|
||||
default_uid = 'kaito'
|
||||
default_gid = 'staff'
|
||||
|
||||
rails_env = 'development' #ENV['RAILS_ENV'] || "production"
|
||||
rails_env = ENV['RAILS_ENV'] || "production"
|
||||
|
||||
|
||||
rails_root = ENV['RAILS_ROOT'] || File.expand_path("..",File.dirname(__FILE__))
|
||||
@@ -17,10 +17,10 @@ num_workers.times do |num|
|
||||
w.interval = 30.seconds
|
||||
p "/usr/bin/rake -f #{rails_root}/Rakefile resque:work QUEUE=* RAILS_ENV=#{rails_env}"
|
||||
# w.env = {"QUEUE"=>"critical,high,low", "RAILS_ENV"=>rails_env}
|
||||
w.start = "rake -f #{rails_root}/Rakefile resque:work QUEUE=* RAILS_ENV=#{rails_env}"
|
||||
w.start = "rake -f #{rails_root}/Rakefile resque:work QUEUE=* RAILS_ENV=#{rails_env} -P /var/godgod.#{port}.pid"
|
||||
|
||||
w.uid = rails_env == 'production' ? nccu : default_uid
|
||||
w.gid = rails_env == 'production' ? nccu : default_gid
|
||||
w.uid = rails_env == 'production' ? "nccu" : default_uid
|
||||
w.gid = rails_env == 'production' ? "nccu" : default_gid
|
||||
|
||||
|
||||
w.log = "#{rails_root}/log/god.log"
|
||||
|
||||
Reference in new issue
Block a user