add flask.request.host to top of rendered template, debugging why it's not pulling stuff from s3

This commit is contained in:
Nicole O'Connor 2023-02-13 13:26:50 -08:00
parent 575597b890
commit ea3c91ef88
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ def render_base_context():
global base_context global base_context
global base_context_live global base_context_live
print(flask.request.host) base_context["svchost"] = flask.request.host
domain_components = flask.request.host.split(".") domain_components = flask.request.host.split(".")
base_domain = ".".join(domain_components[-2:]) base_domain = ".".join(domain_components[-2:])
@ -31,4 +31,4 @@ def render_base_context():
@app.route("/core/ping") @app.route("/core/ping")
def aws_healthcheck_ping(): def aws_healthcheck_ping():
return flask.make_response("OK", content_type="text/plain") return flask.Response("OK", content_type="text/plain")

View File

@ -1,4 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<!-- Your server today is {{ svchost }} -->
<html> <html>
<head> <head>
<title>Seagull Game</title> <title>Seagull Game</title>