From cf6845c30305e9321953bd91907922bad5e82629 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sat, 10 Nov 2018 16:58:19 +0100 Subject: [PATCH] Added waitress production server script --- requirements.txt | 1 + server.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100755 server.py diff --git a/requirements.txt b/requirements.txt index 533b660..2d2ba95 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ Flask==1.0.2 Pillow==5.3.0 Click==7.0 +waitress==1.1.0 diff --git a/server.py b/server.py new file mode 100755 index 0000000..d5e1cd4 --- /dev/null +++ b/server.py @@ -0,0 +1,8 @@ +#!/usr/bin/python3 + +from waitress import serve + +import slider + +serve(slider.app, host="0.0.0.0", port=8080) +