Skip to content

Commit

Permalink
Enable Static proxy for development
Browse files Browse the repository at this point in the history
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
alphagov/govuk_app_config#261 and
alphagov/govuk-puppet#11801
  • Loading branch information
theseanything committed Sep 1, 2022
1 parent c3e37b3 commit a4840d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4840d6

Please sign in to comment.