ruby on rails - Sidekiq UI is not loading assets - 404 not found -


i having rails 4.1 application running sidekiq on production. have deployed using nginx + unicorn. have mounted sidekiq ui follows,

mount sidekiq::web => '/sidekiq' 

but since last few days when ever try access sidekiq ui, assets of sidekiq returning 404, not found. working fine. not able find leads 404.

here settings nginx+unicorn settings app

upstream sample_app {   server unix:/tmp/sample_app.sock fail_timeout=0; }  server {   listen 80;   server_name www.sample_app.com;    root /home/deploy/applications/sample_app/current/public;    # set expire assets   location ~* \.(?:ico|css|js|gif|jpe?g|png|svg)$ {     expires max;   }    try_files $uri/index.html $uri @sample_app;    location @sample_app {     proxy_set_header x-request-start "t=${msec}";     proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;     proxy_set_header host $http_host;     proxy_redirect off;     proxy_pass http://sample_app;   }    error_page 500 502 503 504 /500.html;   error_page 404 413 /404.html;   client_max_body_size 50m;   keepalive_timeout 10; } 

after debugging, able solve adding following line

# set expire assets location ~* \.(?:ico|css|js|gif|jpe?g|png|svg)$ {   expires max;   try_files $uri @sample_app; } 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -