$ git clone https://github.com/uktrade/invest
$ cd invest
$ make
Requires all host environment variables to be set.
$ make docker_run
$ make docker_debug
$ make docker_test
.env
files will be automatically created (with env_writer.py
based on env.json
) by make docker_test
, based on host environment variables with INVEST
prefix.
$ make debug
$ make debug_webserver
$ make debug_test
Currently the site just uses flat css, this was to enable fast development of the website.
Bootstrap4 is used, for the same reason, instead of export-elements.
$ npm install
$ gulp sass
$ gulp sass
$ gulp sass:watch
Wagtail stores images on the S3 Bucket, it needs the following permissions to be enabled
arn:aws:s3:::bucket-name-here
s3:ListBucket
arn:aws:s3:::bucket-name-here/*
s3:PutObject, s3:PutObjectAcl, s3:GetObject, s3:GetObjectAcl, s3:DeleteObject"
The site is dependent on the textual content and images, so having a copy of the live content is helpful.
Run everything in a fresh terminal session so that settings are not persisted
- Setup postgres on your local machine.
- Create an empty database invest
This example clones invest-staging to the database invest
$ ./scripts/clone-site.sh invest-staging postgres://username:password@localhost:invest