Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.
/ smart-error Public archive

Nice error pages for when a site (or set of sites) is undergoing maintenance.

Notifications You must be signed in to change notification settings

livelink/smart-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Error
===========

Ever frustrated by those maintenance pages that don't tell you when the 
maintenance is done?  Concerned about users that would have come back,
but forgot to check? 

Smart Error allows a visitor to leave an email address so that you can 
contact them when the site they were trying to visit is back online.


Requirements
------------
Software:
 wkhtmltoimage - http://code.google.com/p/wkhtmltopdf/
  redis server - http://redis.io/

Gems:
    redis - https://github.com/ezmobius/redis-rb
  sinatra - http://www.sinatrarb.com/


Usage
-----
1. Generate thumbnails using:
 $ rake thumbnail HOST=<hostname> 
or 
 $ rake thumbnail FILE=<file-with-list-of-hosts>

2. Clear database prior to maintenance:
 $ rake list:clear

3. Run up using passenger/thin/whatever

4. Export list of hosts/emails to contact
 $ rake list:all

5. Email users


Credits:
--------
Monitor image: Andy / Molumen - http://www.openclipart.org/detail/6977

About

Nice error pages for when a site (or set of sites) is undergoing maintenance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages