c'est un peu plus joli, et en plus ca marche (ptet?)

This commit is contained in:
piair 2023-08-24 13:45:58 +02:00
parent e28efad8de
commit 48225a0455
2 changed files with 1 additions and 8 deletions

View File

@ -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()

View File

@ -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'