ruby on rails 3.1 - Some assets not displaying on Heroku -
i've added new images app , display fine locally, not in production on heroku. css reference generated correct:
background-image: url("glyphicons-halflings-white.png")
that links http://www.photoramblr.com/assets/glyphicons-halflings-white.png
there's no image there, other images i've uploaded in past sitting there under /assets/... instance this one. interestingly, if take long string of numbers out, leaving original filename, image blank...
asset precompiling seemed work fine when deploying, , i've tried running asset:precompile manually on server, still no image.
any thoughts?
update: btw, here's @ config/application.rb
:
if defined?(bundler) # if precompile assets before deploying production, use line # bundler.require *rails.groups(:assets => %w(development test)) # if want assets lazily compiled in production, use line bundler.require(:default, :assets, rails.env) end module photorambler class application < rails::application # enable asset pipeline config.assets.enabled = true # version of assets, change if want expire assets config.assets.version = '1.0' config.assets.initialize_on_precompile = false config.assets.compress = true
make sure new assets checked source control.
Comments
Post a Comment