Permalink
Browse files

Fixes the sidekiq-CSS-issue in production

  • Loading branch information...
1 parent bf99b84 commit 65b974a06e1eace8e42e15c3000dc9367b5bad33 @philippbayer philippbayer committed Sep 4, 2013
Showing with 6 additions and 4 deletions.
  1. +6 −1 config.ru
  2. +0 −3 config/routes.rb
View
@@ -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
+)
View
@@ -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.

0 comments on commit 65b974a

Please sign in to comment.