Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (35 sloc) 1.47 KB

CircleCI Code Climate

Trade Tariff Frontend

Now maintained at https://github.com/bitzesty/trade-tariff-frontend

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.

Running the frontend

Requires:

  • Ruby
  • Rails

Uses:

  • Memcache

Commands:

./bin/setup
foreman start

Running the test suite

To run the spec use the following command:

RAILS_ENV=test bundle exec rake

Deploying the application

We deploy to cloud foundry, so you need to have the CLI installed, and the following cf plugin installed:

Download the plugin for your os: https://github.com/contraband/autopilot/releases

chmod +x autopilot-(YOUR_OS)
cf install-plugin autopilot-(YOUR_OS)

Set the following ENV variables:

  • CF_USER
  • CF_PASSWORD
  • CF_ORG
  • CF_SPACE
  • CF_APP
  • SLACK_CHANNEL
  • SLACK_WEBHOOK

Then run

./bin/deploy