Now maintained by HMRC
https://www.trade-tariff.service.gov.uk/trade-tariff/sections
This is the front-end application for:
This application requires the Trade Tariff Backend API to be running and the following env variable set TARIFF_API_HOST
.
To use latest api version need to set up env variable TARIFF_API_VERSION
.
Requires:
- Ruby
- Rails
- node & npm
- yarn
Uses:
- Redis
Commands:
./bin/setup
yarn install
foreman start
To run the spec use the following command:
RAILS_ENV=test bundle exec rake
We deploy to cloud foundry, so you need to have the CLI installed, and the following cf plugin installed:
Set the following ENV variables:
- CF_USER
- CF_PASSWORD
- CF_ORG
- CF_SPACE
- CF_APP
- SLACK_CHANNEL
- SLACK_WEBHOOK
Then run
./bin/deploy
We are using CF AutoScaler plugin to perform application autoscaling. Set up guide and documentation are available by links below:
https://docs.cloud.service.gov.uk/managing_apps.html#autoscaling
https://github.com/cloudfoundry/app-autoscaler/blob/develop/docs/Readme.md
To check autoscaling history run:
cf autoscaling-history APPNAME
To check autoscaling metrics run:
cf autoscaling-metrics APP_NAME METRIC_NAME
To remove autoscaling policy and disable App Autoscaler run:
cf detach-autoscaling-policy APP_NAME
To create or update autoscaling policy for your application run:
cf attach-autoscaling-policy APP_NAME ./policy.json
Current autosscaling policy files are here.