Open adas172002 opened 10 years ago
Hi,
Is someone try to fix this bug with assets? Or do you find a workaround @adas172002 ?
Best Regards Luc Donnet
Hi Luc,
looks like my bug is unresolved. In fact I am not sure if this a font awesome or Sprockets bug. In the meantime I updated FA to 4.2.0 and also Rails to 4.1.6, sass.gem is 3.2.19 - there is a dependency from foundation-rails.gem I am using in my project.
Anyway, I made links on server in main app public/assets
to point font resources from sub-URI assets
directory. This works for me, YMMV.
Hi,
Rails 4.1.4 app running on Passenger/ apache in sub-URI
/svt
. Using font-awesome-sass gem in development env works as expected, but after deploying to production enviroment FA fonts do not show up. Apache access log gives possible explanation of the issue:As you see, font files are 404s because are looked up in root directory of the server, while they should be referenced with subdirectory, like stylesheets files.
For the reference, public/assets/ directory contains font files, generated with sprockets
bundle exec rake assets:precompile RAILS_ENV=production