Note - you need to be in the 'Subscriptions Promotion tool' google group to access these urls, otherwise you will get a redirect loop.
-
Download our private keys from the gu-promotions-tool-private S3 bucket. If you have the AWS CLI set up you can run:
aws s3 cp s3://gu-reader-revenue-private/membership/promotions-tool/DEV/memsub-promotions-keys.conf /etc/gu --profile membership
-
Install the frontend dependencies
cd frontend yarn install
-
Run
./devrun
and navigate tohttps://promo.thegulocal.com
OR
sbt devrun
cd frontend; yarn devrun
-
cd nginx
-
Install dependencies
brew bundle
-
Run
./setup.sh
-
Go to project root
-
Add the following to your hosts file in
/etc/hosts
127.0.0.1 promo.thegulocal.com
-
Change the ownership of the 'gu' directory under 'etc' to current user.
$ sudo -i chown -R {username} /etc/gu
-
Setup AWS credentials with Janus.
In
~/.aws/config
add the following:[default] region = eu-west-1
See the lambdas/ folder