css - Rails 3.1 Asset Pipeline Fingerprinting -



css - Rails 3.1 Asset Pipeline Fingerprinting -

simple question:

i've got rails 3.1 app running in staging, rails_env=production. problem this: stylesheet_link_tag produces different fingerprint css files fingerprint produced rake assets:precompile.

so when request page, link stylesheet looking file like:

/assets/front-1e3a4454e0d5434eccac1a053ca4c7fd.css

but in reality file sitting in public/assets

front-60b624d69d97b3ac5f288c54245a5ed5.css

and browser returns 404 not found.

here linlk stylesheet_link_tag :front. can explain me why happens?

i've been having same exact issue. best can tell, occurs when precompile task runs during capistrano deploy. i've had remove precompile deployment , run

rake assets:precompile rails_env=production release directory after app has been deployed. it's pain if you're pushing code frequently.

css ruby-on-rails ruby-on-rails-3.1 asset-pipeline fingerprinting

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -