From 65b974a06e1eace8e42e15c3000dc9367b5bad33 Mon Sep 17 00:00:00 2001 From: Philipp Bayer Date: Wed, 4 Sep 2013 10:26:08 +1000 Subject: [PATCH] Fixes the sidekiq-CSS-issue in production --- config.ru | 7 ++++++- config/routes.rb | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config.ru b/config.ru index a63637b0..78494ca7 100644 --- a/config.ru +++ b/config.ru @@ -1,2 +1,7 @@ +require 'sidekiq/web' require ::File.expand_path('../config/environment', __FILE__) -run Snpr::Application + +run Rack::URLMap.new( + "/" => Rails.application, + "/sidekiq" => Sidekiq::Web +) diff --git a/config/routes.rb b/config/routes.rb index 2714abf1..1dc65a0a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,3 @@ -require 'sidekiq/web' Snpr::Application.routes.draw do resources :static resources :phenotypes do @@ -75,8 +74,6 @@ root :to => 'index#index' # change this, maybe - mount Sidekiq::Web, at: '/sidekiq' - # The priority is based upon order of creation: # first created -> highest priority.