Quickily turn your Heroku app in and out of SOPA protest mode.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit behind pedro:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
init.rb

README.md

Heroku SOPA

Quickily turn your Heroku app in and out of SOPA protest mode.

Internally it uses the Custom Error Pages add-on to make your app render a 503 response containing a protest instead of your regular HTML.

Keep in mind it will override any existing MAINTENANCE_PAGE_URL on the app.

Usage

$ heroku plugins:install git@github.com:pedro/heroku-sopa.git
heroku-sopa installed

$ heroku sopa:on
SOPA protest is now enabled

$ heroku sopa:off
SOPA protest disabled

About

Written by Pedro Belo. Thanks Caley Woods for the idea!