From b227f47953b3fb04a4b40709dd101c21ab620cab Mon Sep 17 00:00:00 2001 From: piair Date: Thu, 24 Aug 2023 13:58:53 +0200 Subject: [PATCH] hmmmm --- Flask/start.sh | 1 + config/request.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Flask/start.sh b/Flask/start.sh index 825f446..1083731 100644 --- a/Flask/start.sh +++ b/Flask/start.sh @@ -1,4 +1,5 @@ service grafana-server start service nginx start +sleep 3 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 diff --git a/config/request.sh b/config/request.sh index c4a69f2..0892066 100644 --- a/config/request.sh +++ b/config/request.sh @@ -1,4 +1,4 @@ -curl -X "POST" "http://localhost:3000/api/datasources" \ +curl -X "POST" "http://localhost:1234/grafana/api/datasources" \ -H "Content-Type: application/json" \ --user admin:admin \ --data-raw $'{"id":1,"uid":"bed26262-6b98-4dfc-a95d-f8bd39b5d09c","orgId":1,"name":"SQLite","type":"frser-sqlite-datasource","typeName":"SQLite","typeLogoUrl":"public/plugins/frser-sqlite-datasource/img/logo.svg","access":"proxy","url":"","user":"","database":"","basicAuth":false,"isDefault":true,"jsonData":{"attachLimit":0,"path":"/app/MsRewards-Reborn/MsRewards.db","pathPefix":"file:"},"readOnly":false}'