I compiled my assets without errors they work in development environment without problems but they all broke in production. I checked my log file it seems that it's not referencing the correct location. This is one of the errors.
INFO -- : Started GET "/homeFoods/fonts/glyphicons-halflings-regular.woff2" for 132.241.174.123
at 2016-04-08 22:35:59 +0000 F, [2016-04-08T22:35:59.294695 #26882] FATAL -- :
ActionController::RoutingError (No route matches [GET] "/fonts/glyphicons-halflings-regular.woff2"):
Why it's assuming that fonts directory is located under homeFoods not /homeFoods/app/assets/ ?
application.rb
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
config.assets.precompile += %w( .svg .eot .woff .ttf )
bootstrap.css
font-face {
font-family: 'Glyphicons Halflings';
src: url('/assets/glyphicons-halflings-regular.eot');
src: url('/assets/glyphicons-halflings-regular.eot?#iefix')
format('embedded-opentype'), url('/assets/glyphicons-halflings-regular.woff') format('woff'), url('/assets/glyphicons-halflings-regular.ttf') format('truetype'), url('/assets/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');}
