我对 sidekiq 监视器有问题 - 在开发中它工作正常,但在生产中它没有任何 CSS 工作,只是显示普通网页而没有静止在 int 上!请问哪位大神知道怎么解决啊!!!!!!
我正在使用这个版本 https://github.com/mperham/sidekiq/wiki/Monitoring
我对 sidekiq 监视器有问题 - 在开发中它工作正常,但在生产中它没有任何 CSS 工作,只是显示普通网页而没有静止在 int 上!请问哪位大神知道怎么解决啊!!!!!!
我正在使用这个版本 https://github.com/mperham/sidekiq/wiki/Monitoring
它通过将 gem 资产链接到公共文件夹来为我工作,如下所示:
ln -svf /home/deploy/my_app/shared/bundle/ruby/2.1.0/gems/sidekiq-4.0.1/web/assets /home/deploy/my_app/current/public/sidekiq
一个解决方案是/config/environments/production.rb
改变:
config.action_dispatch.x_sendfile_header = "X-Sendfile"
至:
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
在 这里找到