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