Skip to main content

short-url-manager: Rake tasks

These rake tasks come from the desc descriptions in short-url-manager’s lib/tasks folder. To change what’s shown here, change the description in the code.

organisations:import

Import organisations | Optionally set API_URL_BASE env variable (to ‘https://www.gov.uk’ for example) - default depends on current environment.

k exec deploy/short-url-manager -- rake organisations:import

View source (lib/tasks/import_organisations.rake)

redirects:create_and_apply

Create and apply a redirect without requiring approval.

k exec deploy/short-url-manager -- rake redirects:create_and_apply[contact_email,from_path,to_path,reason,override_existing,route_type,segments_mode,organisation_slug,organisation_title]

View source (lib/tasks/redirects.rake)