[LRUG] Rendering maintenance pages?
Paul Robinson
paul at 32moves.com
Thu Jun 27 02:35:53 PDT 2013
On 27 Jun 2013, at 09:14, Joel Chippindale <joel.chippindale at gmail.com> wrote:
> The bit that I was wondering about was finding a clean and simple way of getting a rake task to render the maintenance page (and perhaps 500 and 404 response pages too) from erb templates to the filesystem, whilst still be able to take advantage of asset packaging, name route helper methods etc.
If you're in the middle of upgrading the app, doing a bundle install, an asset precompile, etc. you do not want your maintenance pages accessing that app or those resources.
You want a separate area of disk holding those assets that nginx/apache/whatever is going to rewrite all requests to until you're done.
I know that isn't what you want, but it's the way it needs to be for reasons of sanity. :-)
More information about the Chat
mailing list