From 55b222694cf652e3065574d22a2f97fa8628a7a8 Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 3 Dec 2024 20:51:21 -0600 Subject: [PATCH] Switch from gunicorn to waitress --- pkrm.sh | 1 - run.py | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 pkrm.sh diff --git a/pkrm.sh b/pkrm.sh deleted file mode 100644 index 08952fa..0000000 --- a/pkrm.sh +++ /dev/null @@ -1 +0,0 @@ -gunicorn -b 0.0.0.0:4343 run:app \ No newline at end of file diff --git a/run.py b/run.py index ed0d2b2..c1be3bd 100644 --- a/run.py +++ b/run.py @@ -1,6 +1,5 @@ -from app.views import app as application - -app = application +from waitress import serve +from app.views import app if __name__ == "__main__": - application.run(port="4343") + serve(app, host="127.0.0.1", port=4343)