On 28 Jun 2010, at 19:03, Peter De Berdt wrote:
What methods do people use to notify users of upcoming downtime in an
application, and for handling requests nicely while scheduled
downtime
is occurring? My Google-fu is not yielding me anything useful-
looking.
Depends, the easiest way is to use capistrano:
http://www.google.be/search?q=capistrano+maintenance+page
It will put a maintenance page in the public folder for the time
that your app is offline.
There's other ways to do it, like handling it in Apache itself if
you're using Mongrel cluster, like checking if the mongrels are up
and if they're not, serve a custom error page.
And concerning the notification, it's all up to what you personally
prefer tbh. One way to go about it is create a Downtime model and with
a start and end time, put a before_filter in application_controller.rb
that fetches all those > Time.now, then show them by rendering a
partial into every view if the number of records is higher than one.
Best regards
Peter De Berdt
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.