diff --git a/dev/docker-compose.yml b/dev/docker-compose.yml index d52c088..275f913 100644 --- a/dev/docker-compose.yml +++ b/dev/docker-compose.yml @@ -26,7 +26,7 @@ services: ports: - 127.0.0.1:8003:80 environment: - ZIMFARM_WEBAPI: http://localhost:8002/v1 + ZIMFARM_WEBAPI: http://localhost:8004/v1 depends_on: - zimfarm_api zimit_api: diff --git a/dev/start_first_req_task.sh b/dev/start_first_req_task.sh index 56ef952..3c8bc10 100755 --- a/dev/start_first_req_task.sh +++ b/dev/start_first_req_task.sh @@ -1,7 +1,7 @@ echo "Retrieving access token" ZF_ADMIN_TOKEN="$(curl -s -X 'POST' \ - 'http://localhost:8002/v1/auth/authorize' \ + 'http://localhost:8004/v1/auth/authorize' \ -H 'accept: application/json' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'username=admin&password=admin' \ @@ -10,7 +10,7 @@ ZF_ADMIN_TOKEN="$(curl -s -X 'POST' \ echo "Get last requested task" LAST_TASK_ID="$(curl -s -X 'GET' \ - 'http://localhost:8002/v1/requested-tasks/' \ + 'http://localhost:8004/v1/requested-tasks/' \ -H 'accept: application/json' \ -H "Authorization: Bearer $ZF_ADMIN_TOKEN" \ | jq -r '.items[0]._id')" @@ -23,7 +23,7 @@ fi echo "Start task" curl -s -X 'POST' \ - "http://localhost:8002/v1/tasks/$LAST_TASK_ID?worker_name=worker" \ + "http://localhost:8004/v1/tasks/$LAST_TASK_ID?worker_name=worker" \ -H 'accept: application/json' \ -H "Authorization: Bearer $ZF_ADMIN_TOKEN" \ -d ''