Use GOV.UK Docker to run any commands that follow.
Relationship with Transition
Bouncer and Transition currently share a database. As a result, we aim to keep a
few of their dependencies in sync (on the same version), namely:
rails (Transition) and activerecord (Bouncer)
optic14n
Running the tests
bundle exec rake
Testing redirects
In order to test the redirect feature of this app, you can use a special bouncer-redirect.dev.gov.uk domain. We will create a mapping from this fake domain to GOV.UK.
This will create the site in the shared Transition / Bouncer DB.
Start the Bouncer app and go to bouncer-redirect.dev.gov.uk.
You should see that it redirects to GOV.UK, as specified in the site file.
Testing on staging environment
In contrast to other GOV.UK applications, Bouncer isn’t available at x.staging.publishing.service.gov.uk
This means that testing the application on our staging environment will require repointing the domains you wish to test by editing your computer’s host file to point them at Bouncer’s staging IP address. This should allow visiting the app in a web browser, for example. Alternatively, to make a request to our staging environment with curl: