Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 1.85 KB

02.01-dev-setup.md

File metadata and controls

63 lines (47 loc) · 1.85 KB

DEV Setup

Requirements

Ensure you have the following installed:

If you're a homebrew user, you can install these with:

brew bundle

AWS Credentials

The Grid requires AWS credentials when running locally to access the resources created by the dev CloudFormation stack. The credentials should be stored under a profile named media-service.

Developers working at the Guardian can get these credentials from Janus.

Client side dependencies

Client side dependencies can be installed by running:

cd kahuna
npm install

NGINX

To run correctly in standalone mode we run each micro-service behind an nginx site.

Use nginx-mappings.yml along with dev-nginx to generate the nginx configs.

dev-nginx setup-app nginx-mappings.yml

NGINX, Play & SNI

As the Play Framework does not yet support SNI NGINX can't always work out which certificate to send where when there are multiple services on the same IP. This might result in NGINX sending the incorrect certificate resulting in a HostnameVerifier Exception.

Resolution

When the correct cert to send is ambiguous, NGINX simply sends the first cert it sees in it's configuration, which is loaded from config files in alphabetical order.

To resolve this problem, prefix your grid config filename with 0-.