diff --git a/Dockerfile b/Dockerfile index 39d0260..b6109c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ ARG TARGETPLATFORM ARG BUILDPLATFORM LABEL authors="tebarius" -LABEL version="1.3.0" +LABEL version="1.4.0" LABEL description="QR-Code-Generator-Server with Flask-App" WORKDIR /app diff --git a/app/GET-Flask-QR.py b/app/GET-Flask-QR.py index 857f1ce..db9f296 100644 --- a/app/GET-Flask-QR.py +++ b/app/GET-Flask-QR.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # notwendige pakete via pip: -# pip install Flask-QRcode +# pip install Flask-QRcode waitress from flask import Flask, render_template, request from flask_qrcode import QRcode @@ -231,4 +231,7 @@ def makeqr(): if __name__ == "__main__": - app.run(host='0.0.0.0', port=8002) + # app.run(host='0.0.0.0', port=8002) + from waitress import serve + print("http://localhost:8002") + serve(app, host="0.0.0.0", port=8002) diff --git a/app/POST-Flask-QR.py b/app/POST-Flask-QR.py index 0a6622d..f4eb190 100644 --- a/app/POST-Flask-QR.py +++ b/app/POST-Flask-QR.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # notwendige pakete via pip: -# pip install Flask-QRcode +# pip install Flask-QRcode waitress from flask import Flask, render_template, request from flask_qrcode import QRcode @@ -232,4 +232,7 @@ def makeqr(): if __name__ == "__main__": - app.run(host='0.0.0.0', port=8002) + # app.run(host='0.0.0.0', port=8002) + from waitress import serve + print("http://localhost:8002") + serve(app, host="0.0.0.0", port=8002) diff --git a/app/requirements.txt b/app/requirements.txt index ced55d8..40c42fb 100644 Binary files a/app/requirements.txt and b/app/requirements.txt differ diff --git a/readme.md b/readme.md index 3587571..a1761bd 100644 --- a/readme.md +++ b/readme.md @@ -11,7 +11,7 @@ Um lokal das ganze zu testen werden nur die Dateien aus dem app-Verzeichnis ben Voraussetzung ist eine funktionierende Python Installation und das Flask-Framework inclusive Flask-QRcode welches sich recht einfach über die Konsole mit ... - pip install Flask-QRcode + pip install Flask-QRcode waitress ... installieren lässt. Zum Starten dann eine der beiden .py Dateien benutzen, je nachdem welcher