How do I access assets on my maintenance page in rails 3.1 with the asset pipeline enabled?
With the asset pipeline enalbed all assets have a hash in their filename. However, maintenance pages are vanilla HTML, and rails/passenger is being bypassed by the apache config, so there's no way to generate the right asset paths.
I need my application.css and an image file. It's fine if they're the old ones.
I can think of a few kludges, but they're all lame:
- On each deploy, symlink the assets I need to a generic name that I use in the maintenance file.
- Make my maintenance page dynamic, generate it, and dump the markup somewhere - then modify my maintennce 'deploy' script.