From 56b84fea08611594f9b728e19f45061036453ee6 Mon Sep 17 00:00:00 2001 From: Dan Dembinski Date: Fri, 6 Mar 2020 14:05:09 -0500 Subject: [PATCH] Made changes to allow internet access --- docker | 4 +++- main.py | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker b/docker index dfb6201..9d83539 100644 --- a/docker +++ b/docker @@ -7,4 +7,6 @@ ADD requirements.txt / RUN pip install -r ./requirements.txt -CMD ["python", "./main.py"] \ No newline at end of file +export FLASK_APP=main.py + +flask run --host=0.0.0.0 \ No newline at end of file diff --git a/main.py b/main.py index bda4c37..607a706 100644 --- a/main.py +++ b/main.py @@ -56,6 +56,4 @@ def updateFeeds(userID): y = y + 1 showCheck = [] # Clear out the array for the next podcast -if __name__ == "__main__": - app.run(debug=True)