diff --git a/Procfile b/Procfile index e6cb5ad..7787aa7 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: python app.py \ No newline at end of file +web: python test.py \ No newline at end of file diff --git a/app.py b/app.py index ad85c5e..13ca101 100644 --- a/app.py +++ b/app.py @@ -46,6 +46,8 @@ from ques import Ques from refresh_ranges import RefreshRanges +LOCAL_SERVER_ADDRESS = 'https://127.0.0.1:5000/refresh_all' + RANGES_REFRESH_RATE = 10 WAITER_ADDRESS_HTTP_PARAM_NAME = 'waiter_address' @@ -747,7 +749,7 @@ def refresh(): def call_refresh_endpoint(): my_logger.debug("making HTTP request") - r = requests.get('https://127.0.0.1:5000/refresh_all', verify=False) + r = requests.get(LOCAL_SERVER_ADDRESS, verify=False) if __name__ == "__main__": diff --git a/test.py b/test.py new file mode 100644 index 0000000..36e92e8 --- /dev/null +++ b/test.py @@ -0,0 +1,17 @@ +from flask import Flask + +app = Flask(__name__) + + +@app.route("/") +def index(): + return "