added sidekiq/web

This commit is contained in:
nilsding 2014-12-12 18:35:14 +01:00
parent d9d23edc6d
commit 319d75fdf5
3 changed files with 14 additions and 0 deletions

View File

@ -36,6 +36,7 @@ gem 'rails_admin'
gem 'twitter'
gem 'sidekiq'
gem 'sinatra', require: false
gem 'questiongenerator', git: 'https://github.com/justask/questiongenerator.git'

View File

@ -140,6 +140,8 @@ GEM
rack-pjax (0.8.0)
nokogiri (~> 1.5)
rack (~> 1.1)
rack-protection (1.5.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.8)
@ -223,6 +225,10 @@ GEM
multi_json (~> 1.0)
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
sinatra (1.4.5)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
spring (1.2.0)
sprockets (2.12.3)
hike (~> 1.2)
@ -308,6 +314,7 @@ DEPENDENCIES
sdoc (~> 0.4.1)
sidekiq
simplecov
sinatra
spring
thin
turbolinks

View File

@ -1,6 +1,12 @@
require 'sidekiq/web'
Rails.application.routes.draw do
mount RailsAdmin::Engine => '/justask_admin', as: 'rails_admin'
constraints ->(req) { req.env["warden"].authenticate?(scope: :user) &&
req.env['warden'].user.admin? } do
mount Sidekiq::Web, at: "/sidekiq"
end
get 'notifications/index'
root 'static#index'