zaiste / foundation-icons-sass-rails

Foundation Font Icons on Sass for Rails
142 stars 18 forks source link

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

Open chnoack opened 11 years ago

chnoack commented 11 years ago

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

avillafiorita commented 10 years ago

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).

dgwmfo commented 10 years ago

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