Rails шрифт эластичного боба не работает eot | otf | ttf | woff | woff2 - PullRequest
0 голосов
/ 05 апреля 2020

У меня проблемы со шрифтами в моем приложении. У меня эластичный стебель с ruby на рельсах. Когда я получаю сообщение о выходе из консоли браузера tatus Code: 404 Not Found. Есть ли способ решить эту проблему?

enter image description here

ФАЙЛОВ

тема. css

url("/assets/fonts/wokiee.eot?g7nf10#iefix")

Файл nginx webapp_healthd.conf

upstream my_app {
  server unix:///var/run/puma/my_app.sock;
}

log_format healthd '$msec"$uri"'
                '$status"$request_time"$upstream_response_time"'
                '$http_x_forwarded_for';

server {
  listen 80;
  server_name _ localhost; # need to listen to localhost for worker tier

  if ($time_iso8601 ~ "^(\d{4})-(\d{2})-(\d{2})T(\d{2})") {
    set $year $1;
    set $month $2;
    set $day $3;
    set $hour $4;
  }

  access_log  /var/log/nginx/access.log  main;
  access_log /var/log/nginx/healthd/application.log.$year-$month-$day-$hour healthd;



  location / {
    proxy_pass http://my_app; # match the name of upstream directive which is defined above
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }

  location /assets {
    alias /var/app/current/public/assets;
    gzip_static on;
    gzip on;
    expires max;
    add_header Cache-Control public;
  }

  location /public {
    alias /var/app/current/public;
    gzip_static on;
    gzip on;
    expires max;
    add_header Cache-Control public;
  }


}
...