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 9c1148f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,6 @@ bower_components/

build/
dist/

# Local development
canonicalwebteam.flask-base/
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
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
canonicalwebteam.flask-base==1.1.0
# canonicalwebteam.flask-base==1.1.0
-e /home/ubuntu/dqlite-io/canonicalwebteam.flask-base
canonicalwebteam.discourse==5.4.7
canonicalwebteam.search==1.3.0
6 changes: 3 additions & 3 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 @@ -22,7 +22,7 @@
template_404="404.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

0 comments on commit 9c1148f

Please sign in to comment.