From 8991e4f4c81fc4daf6d186aa643303028e496bfb Mon Sep 17 00:00:00 2001 From: piair Date: Tue, 3 Oct 2023 00:23:06 +0200 Subject: [PATCH] please --- Flask/app.py | 2 +- Flask/start.sh | 2 +- Flask/templates/dev.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 711fb4e..cfe656b 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -15,7 +15,7 @@ import redis # redis part for live update -redis_client = redis.StrictRedis(host='localhost', port=6379, db=0) +redis_client = redis.StrictRedis(host='127.0.0.1', port=6379, db=0) pubsub = redis_client.pubsub() pubsub.subscribe('console') diff --git a/Flask/start.sh b/Flask/start.sh index b58937d..7a87489 100644 --- a/Flask/start.sh +++ b/Flask/start.sh @@ -1,4 +1,4 @@ service grafana-server start service nginx start nohup redis-server & -gunicorn --reload -w 1 --worker-class gevent -b 0.0.0.0:6666 'app:app' +gunicorn --reload --worker-class gevent -b 0.0.0.0:6666 'app:app' diff --git a/Flask/templates/dev.html b/Flask/templates/dev.html index 085a2c1..06b79eb 100644 --- a/Flask/templates/dev.html +++ b/Flask/templates/dev.html @@ -20,7 +20,7 @@ const eventSource = new EventSource('/stream'); eventSource.onmessage = (event) => { - console.log("etqhbbqetbqedrtqberzegr"); + console.log("je ne comprend vraiment plus rien, meme git me casse les couilles"); const newOutput = document.createElement('div'); newOutput.textContent = event.data; consoleElement.appendChild(newOutput);