Skip to content

Commit

Permalink
Add the sidekiq ui to the app
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbuchanan authored and Naren Chainani committed Mar 31, 2016
1 parent 212b9f9 commit 7098582
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ gem 'awesome_print'
gem 'mail'
gem 'sidekiq', '~> 3.5.0'
gem 'sidekiq-failures', '~> 0.4.0'
gem 'sinatra', require: false # for the Sidekiq UI

group :development, :test do
gem 'pry'
Expand Down
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ GEM
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-protection (1.5.3)
rack
rack-test (0.6.3)
rack (>= 1.0)
rake (10.4.2)
Expand Down Expand Up @@ -149,12 +151,17 @@ GEM
redis-namespace (~> 1.5, >= 1.5.2)
sidekiq-failures (0.4.5)
sidekiq (>= 2.16.0)
sinatra (1.4.6)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
slop (3.6.0)
spoon (0.0.4)
ffi
thor (0.19.1)
thread_safe (0.3.5)
thread_safe (0.3.5-java)
tilt (2.0.1)
timecop (0.8.0)
timers (4.1.1)
hitimes
Expand Down Expand Up @@ -237,6 +244,7 @@ DEPENDENCIES
rspec-sidekiq
sidekiq (~> 3.5.0)
sidekiq-failures (~> 0.4.0)
sinatra
timecop
torquebox (= 3.0.0)
torquebox-messaging (= 3.0.0)
Expand Down
7 changes: 6 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
require File.expand_path('../config/environment', __FILE__)

require 'backbeat/web'
require 'sidekiq/web'

run Backbeat::Web::App
class SidekiqUI < Grape::API
mount Sidekiq::Web => '/sidekiq'
end

run Rack::Cascade.new([Backbeat::Web::App, SidekiqUI])

0 comments on commit 7098582

Please sign in to comment.