Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit18224a3

Browse files
author
Isabell Long
committed
Make the MapIt "get request data from production" commands HTTPS
- The raw commands to enter were changed in the opsmanual inhttps://github.gds/gds/opsmanual/pull/662, but we forgot to change the fabric script itself, so the traffic replay was returning 301 instead of the appropriate status code (eg 200).
1 parent01a7226 commit18224a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎mapit.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def _restart_mapit_services():
5151
defcheck_database_upgrade():
5252
"""Replay yesterday's Mapit requests to ensure that a database upgrade works"""
5353

54-
sudo("awk '$9==200 {print\"http://localhost\" $7}' /var/log/nginx/mapit.publishing.service.gov.uk-access.log.1 > mapit-200s")
55-
sudo("awk '$9==404 {print\"http://localhost\" $7}' /var/log/nginx/mapit.publishing.service.gov.uk-access.log.1 > mapit-404s")
56-
sudo("awk '$9==302 {print\"http://localhost\" $7}' /var/log/nginx/mapit.publishing.service.gov.uk-access.log.1 > mapit-302s")
54+
sudo("awk '$9==200 {print\"https://localhost\" $7}' /var/log/nginx/mapit.publishing.service.gov.uk-access.log.1 > mapit-200s")
55+
sudo("awk '$9==404 {print\"https://localhost\" $7}' /var/log/nginx/mapit.publishing.service.gov.uk-access.log.1 > mapit-404s")
56+
sudo("awk '$9==302 {print\"https://localhost\" $7}' /var/log/nginx/mapit.publishing.service.gov.uk-access.log.1 > mapit-302s")
5757

5858
print"Replaying Mapit 200s. Ensure that they are all still 200s."
5959
print"NOTE: Some 404s may result if internal ids have changed because /area/<code> will redirect to /area/<internal-id> - this should be a low number and for /area/ urls only"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp