From afd1913de446a0cb111a251e68f706c2ee7ad2eb Mon Sep 17 00:00:00 2001 From: Ilya Zhitomirskiy Date: Mon, 26 Sep 2011 10:25:29 -0700 Subject: [PATCH] added a link to resque-web from admin page --- app/views/admins/_admin_bar.haml | 2 ++ config/application.yml.example | 2 ++ config/routes.rb | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/admins/_admin_bar.haml b/app/views/admins/_admin_bar.haml index 2bee946ca..5f261d9e0 100644 --- a/app/views/admins/_admin_bar.haml +++ b/app/views/admins/_admin_bar.haml @@ -5,5 +5,7 @@ %li= link_to 'User Search', user_search_path %li= link_to 'Weekly User Stats', weekly_user_stats_path %li= link_to 'Pod Stats', pod_stats_path + - if AppConfig[:mount_resque_web] + %li= link_to 'Resque Overview', resque_web_path diff --git a/config/application.yml.example b/config/application.yml.example index 4c5588576..36d4191fa 100644 --- a/config/application.yml.example +++ b/config/application.yml.example @@ -65,6 +65,7 @@ defaults: &defaults - 'diasporahq@joindiaspora.com' # List of users who have admin privileges + # (expressed as an array of local usernames) admins: - 'example_user1dsioaioedfhgoiesajdigtoearogjaidofgjo' @@ -166,6 +167,7 @@ defaults: &defaults paypal_hosted_button_id: "" # Mount resque-web into routes + # This allows an administrator to see info about the workers mount_resque_web: true # diff --git a/config/routes.rb b/config/routes.rb index 64a68efd6..f8f8856b4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -167,7 +167,7 @@ Diaspora::Application.routes.draw do # Resque web if AppConfig[:mount_resque_web] - mount Resque::Server.new, :at => '/resque-jobs' + mount Resque::Server.new, :at => '/resque-jobs', :as => "resque_web" end # Logout Page (go mobile)