This commit is contained in:
2024-11-19 22:32:43 +01:00
parent 4418d0714c
commit 54a08dbb3e
5 changed files with 12 additions and 6 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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)

Binary file not shown.

View File

@@ -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