From a4840d620024683f9c6b93e35d1e62ffaffd13c0 Mon Sep 17 00:00:00 2001 From: Sean Rankine Date: Thu, 1 Sep 2022 17:06:32 +0100 Subject: [PATCH] Enable Static proxy for development This sets the GOVUK_PROXY_STATIC_ENABLED env var to enable the proxy to Static in production. This is so the application continues, when Static changes to use relative URLs for assets. See https://github.com/alphagov/govuk_app_config/pull/261 and https://github.com/alphagov/govuk-puppet/pull/11801 --- app.json | 1 + startup.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/app.json b/app.json index 47c35c5f468..fe70080f06c 100644 --- a/app.json +++ b/app.json @@ -6,6 +6,7 @@ "env": { "GOVUK_APP_DOMAIN": "www.gov.uk", "GOVUK_WEBSITE_ROOT": "https://www.gov.uk", + "GOVUK_PROXY_STATIC_ENABLED": "true", "PLEK_SERVICE_CONTENT_STORE_URI": "https://www.gov.uk/api" , "PLEK_SERVICE_STATIC_URI": "https://assets.publishing.service.gov.uk/", "RUNNING_ON_HEROKU": "true", diff --git a/startup.sh b/startup.sh index ec76c2037ab..6dbf067b5ff 100755 --- a/startup.sh +++ b/startup.sh @@ -5,6 +5,7 @@ bundle install if [[ $1 == "--live" ]] ; then GOVUK_APP_DOMAIN=www.gov.uk \ GOVUK_WEBSITE_ROOT=https://www.gov.uk \ + GOVUK_PROXY_STATIC_ENABLED=true \ PLEK_SERVICE_CONTENT_STORE_URI=${PLEK_SERVICE_CONTENT_STORE_URI-https://www.gov.uk/api} \ PLEK_SERVICE_STATIC_URI=${PLEK_SERVICE_STATIC_URI-assets.publishing.service.gov.uk} \ bundle exec rails s -p 3010