government-frontend
government-frontend copied to clipboard
Viewing "get-involved" page locally
What
While working on this PR I faced an issue where I was unable to use -app-live
to see the get involved page render locally.
Workaround
To render page locally
content-store
, search-api
, static
have to be run in parallel
government-frontend
has to be started in -app
mode not app-live
mode as local data is needed
Recent local data is needed for content-store
and search-api
- this data has to be pulled from AWS so its gets recent snapshot - eg:
gds aws govuk-integration-poweruser ./bin/replicate-elasticsearch.sh
gds aws govuk-integration-poweruser ./bin/replicate-mongodb.sh content-store
I faced an issue where data from search-api
was failing to download correctly from AWS.
The workaround is to delete the parent folder govuk-docker/replication/elasticsearch-6
(this download should now complete)
Once this is done each app has to be re made using make
(as the existing containers will still reference old data)
Expectations (once issue resolved)
-
government-frontend
usesapp-live
starts all of the relevant apps in parallel -
app-live
command works as expected and local data isn't a requirement for this particular page to render locally.