Skip to content

Commit

Permalink
Move sidekik monitoring config into right spot
Browse files Browse the repository at this point in the history
Rio517 committed May 26, 2015
1 parent 57e3905 commit 7479166
Showing 2 changed files with 13 additions and 10 deletions.
13 changes: 13 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -15,4 +15,17 @@ use Rack::Cors do
:headers => :any,
:methods => [:get, :post, :put, :options]
end
end


# Code to enable the sidekiq monitoring dashboard
# See also: production.rb

require 'sidekiq/web'
map '/sidekiq' do
use Rack::Auth::Basic, "Protected Area" do |username, password|
username == 'sidekiq' && password == ENV["SIDEKIQ_DASHBOARD_PASSWORD"]
end

run Sidekiq::Web
end
10 changes: 0 additions & 10 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
@@ -4,16 +4,6 @@
config.redis = {size: 1}
end

require 'sidekiq/web'
map '/sidekiq' do
use Rack::Auth::Basic, "Protected Area" do |username, password|
username == 'sidekiq' && password == ENV["SIDEKIQ_DASHBOARD_PASSWORD"]
end

run Sidekiq::Web
end


Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

0 comments on commit 7479166

Please sign in to comment.