foundation-icons-sass-rails icon indicating copy to clipboard operation
foundation-icons-sass-rails copied to clipboard

Icons cannot be found when running on Apache/Phusion in a Sub-URI

Open chnoack opened this issue 11 years ago • 2 comments

My Rails-App is using foundation-icons-sass-rails and works well as long as the apps root URL is '/'. If you use Phusion Passenger and install you application under a sub URL like http://www.example.com/myapp the font assets will still be searched under '/assets' and not under '/myapp/assets'. This is wrong.

Is there a way to configure the font url for foundation icons in my Rails app?

Best regards,

Christian

chnoack avatar Jul 14 '13 20:07 chnoack

I had the same problem, which I fixed with:

rake RAILS_RELATIVE_URL_ROOT='/<<APP URL>>' assets:precompile

(so it does not seem to be a problem with the gem).

avillafiorita avatar Oct 20 '13 15:10 avillafiorita

I continue to have this problem despite running the rake task suggested by avillafiorita. I entered:

RAILS_ENV=production bundle exec rake RAILS_RELATIVE_URL_ROOT='/pellethead' assets:precompile

My app runs at ww.xx.yy.zz/pellethead.

Icons (and my supposedly responsive homepage image using interchange) do not appear or are broken (404).

Any further advice?

Thanks,

--Dean

dgwmfo avatar Mar 26 '14 15:03 dgwmfo