Skip to content

Commit

Permalink
Remove talisker request
Browse files Browse the repository at this point in the history
  • Loading branch information
britneywwc committed Dec 11, 2023
1 parent e222399 commit 1b38fd9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion entrypoint
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env bash

set -e
RUN_COMMAND="talisker.gunicorn.gevent webapp.app:app --bind $1 --worker-class gevent --name talisker-`hostname`"
RUN_COMMAND="gunicorn webapp.app:app --bind $1"

if [ "${FLASK_DEBUG}" = true ] || [ "${FLASK_DEBUG}" = 1 ]; then
RUN_COMMAND="${RUN_COMMAND} --reload --log-level debug --timeout 9999"
Expand Down
8 changes: 4 additions & 4 deletions webapp/app.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import talisker.requests
import requests

# Packages
from canonicalwebteam.flask_base.app import FlaskBase
Expand All @@ -20,9 +20,9 @@
template_folder="../templates",
static_folder="../static",
template_404="404.html",
template_500="500.html",
template_500="500.html"
)
session = talisker.requests.get_session()
session = requests.Session()

docs_url_prefix = "/docs"
discourse_docs = Docs(
Expand Down Expand Up @@ -71,4 +71,4 @@ def sitemap_links():
response = make_response(xml_sitemap)
response.headers["Content-Type"] = "application/xml"

return response
return response

Check warning on line 74 in webapp/app.py

View check run for this annotation

Codecov / codecov/patch

webapp/app.py#L74

Added line #L74 was not covered by tests

0 comments on commit 1b38fd9

Please sign in to comment.