diff --git a/app/controllers/admin/box_controller.rb b/app/controllers/admin/box_controller.rb index 4f913fe..52aa99a 100644 --- a/app/controllers/admin/box_controller.rb +++ b/app/controllers/admin/box_controller.rb @@ -2,14 +2,14 @@ class Admin::BoxController < OrbitAdminController include ReverseProxy::Controller SocketFile = "#{Rails.root}/tmp/box.sock" Binary = File.expand_path("../../../../bin/box", __FILE__) - CSSFile = File.expand_path("../../../../white-on-black.css", __FILE__) + CSSFile = File.expand_path("../../../white-on-black.css", __FILE__) skip_before_filter :verify_authenticity_token def index is_not_open = `fuser #{SocketFile}`.gsub(/\n/, '').empty? if !File.exists?(SocketFile) || `ss -elx | grep -w "$(stat -c 'ino:%i dev:0/%d' '#{SocketFile}')"`.blank? Thread.new do - `#{Binary} --unixdomain-only #{SocketFile}:$USER:$USER:0666 --disable-ssl --css #{CSSFile}` + `#{Binary} --unixdomain-only #{SocketFile}:$USER:$USER:0666 --disable-ssl --debug --css #{CSSFile}` end sleep 3 end