Version and docker OK

This commit is contained in:
Djeex
2025-08-21 18:55:05 +02:00
parent 7675b90909
commit 5d238fcf33
10 changed files with 32 additions and 13 deletions

View File

@ -18,6 +18,10 @@ from src.py.webui.upload import upload_bp
logging.basicConfig(level=logging.INFO, format="%(message)s")
# --- Flask app setup ---
VERSION_FILE = Path(__file__).resolve().parents[3] / "VERSION"
with open(VERSION_FILE, "r") as vf:
lumeex_version = vf.read().strip()
WEBUI_PATH = Path(__file__).parents[2] / "webui" # Path to static/templates
app = Flask(
__name__,
@ -68,6 +72,10 @@ def get_local_fonts(theme_name):
def index():
return render_template("index.html")
@app.context_processor
def inject_version():
return dict(lumeex_version=lumeex_version)
# --- Gallery & Hero API ---
@app.route("/gallery-editor")
def gallery_editor():
@ -479,5 +487,5 @@ def download_output_zip():
# --- Run server ---
if __name__ == "__main__":
logging.info("Starting WebUI at http://127.0.0.1:5000")
app.run(debug=True)
logging.info("Starting WebUI at http://0.0.0.0:5000")
app.run(host="0.0.0.0", port=5000, debug=True)