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