title: SVG Fonts with Rails Asset Pipeline and S3 Hosting
body: <p>I have a Rails project, hosted on Heroku, and I just moved hosting my assets to S3. This has all gone smooth EXCEPT for some custom fonts (SVG fonts from icomoon). They're not working, and when I view my web source, I can see that my S3 bucket doesn't show up:</p>
  
  <pre><code>@font-face{font-family:'Starter-Icons';src:url(https://.s3.amazonaws.com/fonts/Starter-Icons.eot);src:url(https://.s3.amazonaws.com/fonts/Starter-Icons.eot?#iefix) 
  </code></pre>
  
  <p>etc. However, other assets (images, stylesheets, etc) hosted with S3 do include the proper bucket name.</p>
  
  <p>My <code>font-face</code> declarations are in a .less file (this doesn't need to be a .less.erb file does it?)</p>
  
  <pre><code>@font-face {
  font-family: 'Starter-Icons';
  src:font-url("Starter-Icons.eot");
  src:font-url("Starter-Icons.eot?#iefix") format('embedded-opentype'),
      font-url("Starter-Icons.woff") format('woff'),
      font-url("Starter-Icons.ttf") format('truetype'),
      font-url("Starter-Icons.svg#Starter-Icons") format('svg');
  font-weight: normal;
  font-style: normal;
  </code></pre>
  
  <p>}</p>
  
  <p>All my fonts are in <code>/app/assets/fonts</code>. I've followed the steps in <a href="https://stackoverflow.com/questions/10905905/using-fonts-with-rails-asset-pipeline">the accepted answer here</a>, but the fact that my bucket name isn't showing up for the fonts leads me to believe it's a different issue.</p>
  
  <p>EDIT</p>
  
  <p>I am using the asset_sync gem for this, its config is below:</p>
  
  <pre><code>if defined?(AssetSync)
    AssetSync.configure do |config|
    config.fog_provider = 'AWS'
    config.fog_directory = 'starterapp'
  
    config.aws_access_key_id = ENV['STARTER_AWS_ACCESS_KEY_ID']
    config.aws_secret_access_key = ENV['STARTER_AWS_SECRET_ACCESS_KEY']
  
    # Don't delete files from the store
    config.existing_remote_files = 'keep'
  
    # Automatically replace files with their equivalent gzip compressed version
    config.gzip_compression = true
  end
  </code></pre>
  
  <p>end</p>