title: Rails 4: Why are fonts not loading in production?
body: <p>I can't load fonts in my Rails 4 app in production, it works normally in development.</p>
  
  <p>Assets are precompiled on the server while deploying.</p>
  
  <p>I have my fonts in </p>
  
  <p><code>app/assets/fonts</code></p>
  
  <p>My app.css:</p>
  
  <pre><code>@font-face {
      font-family: 'WalkwayBoldRegular';
      src: url('Walkway_Bold-webfont.eot');
      src: url('Walkway_Bold-webfont.eot?#iefix') format('embedded-opentype'),
           url('Walkway_Bold-webfont.woff') format('woff'),
           url('Walkway_Bold-webfont.ttf') format('truetype'),
           url('Walkway_Bold-webfont.svg#WalkwayBoldRegular') format('svg');
      font-weight: normal;
      font-style: normal;
  }
  </code></pre>
  
  <p>In my production.rb I have:</p>
  
  <pre><code>config.assets.precompile &lt;&lt; Proc.new { |path|
    if path =~ /\.(eot|svg|ttf|woff)\z/
      true
    end
  }
  </code></pre>