mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-08-10 07:16:37 +02:00
grafana only works 30sec after start
This commit is contained in:
@ -452,7 +452,13 @@ def maxi(dict):
|
||||
m = int(i)
|
||||
return(m+1)
|
||||
|
||||
def setup_grafana():
|
||||
if get("http://localhost:3000/api/datasources").text == "[]" :
|
||||
subprocess.Popen(["bash",'/app/MsRewards-Reborn/grafana-config/request.sh'])
|
||||
|
||||
if __name__ == '__main__':
|
||||
print("this is launched")
|
||||
setup_grafana()
|
||||
update_jobs()
|
||||
edit_version()
|
||||
app.run(host='0.0.0.0', port=1234, debug=True)
|
||||
|
Reference in New Issue
Block a user