I have a strange issue where only some of our assets are being pre-compiled on production. Our application.css
file is compiled and updated, but our mobile.css
file hasn't been compiled since July, and the site still points to this older version.
Stranger still, we don't get this problem on our staging or local environments. All assets are precompiled and the latest versions are served on the site.
In July we upgraded the site to rails 4 and changed our configuration to this:
# Rails 4 changed the precompile to only for app/assets. This will include vendor/assets
config.assets.precompile << Proc.new{|filename, path| %w(.png .gif .css .js .htc .svg .eot .woff .ttf).include?(File.extname(filename)) && path =~ /(\/lib\/assets)|(\/vendor\/assets)/ }
config.assets.precompile += [
'form.css',
'homepage.css',
…
#mobile
'common_mobile.css'
]
Any ideas on what could cause this?