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)