Skip to content

Commit

Permalink
Fix dev ports
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Apr 9, 2024
1 parent 2de33a5 commit 79e53a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions dev/start_first_req_task.sh
Original file line number Diff line number Diff line change
@@ -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' \
Expand All @@ -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')"
Expand All @@ -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 ''
Expand Down

0 comments on commit 79e53a2

Please sign in to comment.