From 48225a04550ca9a22afab620c40f1677c84a5622 Mon Sep 17 00:00:00 2001 From: piair Date: Thu, 24 Aug 2023 13:45:58 +0200 Subject: [PATCH] c'est un peu plus joli, et en plus ca marche (ptet?) --- Flask/app.py | 8 -------- Flask/start.sh | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index 2b033f1..7a844f9 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -452,14 +452,6 @@ def maxi(dict): m = int(i) return(m+1) -def setup_grafana(): - print("setup_grafana") - if get("http://localhost:3000/api/datasources").text == "[]" : - print("subprocess started") - subprocess.Popen(["bash",'/app/MsRewards-Reborn/config/request.sh']) - - -setup_grafana() if __name__ == '__main__': update_jobs() edit_version() diff --git a/Flask/start.sh b/Flask/start.sh index 546953a..b76289e 100644 --- a/Flask/start.sh +++ b/Flask/start.sh @@ -1,3 +1,4 @@ service nginx start service grafana-server start +bash /app/MsRewards-Reborn/config/request.sh gunicorn --reload -w 4 -b 0.0.0.0:6666 'app:app' \ No newline at end of file