Skip to content

Commit beafa1b

Browse files
committed
We have a Fastly staging service, use it.
Set environment variable which we can then use in tasks to do logic on a per environment basis. Actually purge the correct CDN hostnames for a given environment.
1 parent 8528c51 commit beafa1b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cdn.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ def fastly_purge(*args):
1111
if env.environment == 'production':
1212
hostnames_to_purge = ['www.gov.uk', 'assets.digital.cabinet-office.gov.uk']
1313
elif env.environment == 'staging':
14-
# FIXME - Staging Fastly service should point to non alphagov.co.uk
15-
# domains and amended here after the miration to Carrenza
16-
hostnames_to_purge = ['www.staging.alphagov.co.uk', 'assets.staging.alphagov.co.uk']
14+
hostnames_to_purge = ['www.staging.publishing.service.gov.uk', 'assets.staging.publishing.service.gov.uk']
1715

1816
for path in args:
1917
if "*" in path:

0 commit comments

Comments
 (0)