Skip to content

Commit 79e53a2

Browse files
committed
Fix dev ports
1 parent 2de33a5 commit 79e53a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dev/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
ports:
2727
- 127.0.0.1:8003:80
2828
environment:
29-
ZIMFARM_WEBAPI: http://localhost:8002/v1
29+
ZIMFARM_WEBAPI: http://localhost:8004/v1
3030
depends_on:
3131
- zimfarm_api
3232
zimit_api:

dev/start_first_req_task.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
echo "Retrieving access token"
22

33
ZF_ADMIN_TOKEN="$(curl -s -X 'POST' \
4-
'http://localhost:8002/v1/auth/authorize' \
4+
'http://localhost:8004/v1/auth/authorize' \
55
-H 'accept: application/json' \
66
-H 'Content-Type: application/x-www-form-urlencoded' \
77
-d 'username=admin&password=admin' \
@@ -10,7 +10,7 @@ ZF_ADMIN_TOKEN="$(curl -s -X 'POST' \
1010
echo "Get last requested task"
1111

1212
LAST_TASK_ID="$(curl -s -X 'GET' \
13-
'http://localhost:8002/v1/requested-tasks/' \
13+
'http://localhost:8004/v1/requested-tasks/' \
1414
-H 'accept: application/json' \
1515
-H "Authorization: Bearer $ZF_ADMIN_TOKEN" \
1616
| jq -r '.items[0]._id')"
@@ -23,7 +23,7 @@ fi
2323
echo "Start task"
2424

2525
curl -s -X 'POST' \
26-
"http://localhost:8002/v1/tasks/$LAST_TASK_ID?worker_name=worker" \
26+
"http://localhost:8004/v1/tasks/$LAST_TASK_ID?worker_name=worker" \
2727
-H 'accept: application/json' \
2828
-H "Authorization: Bearer $ZF_ADMIN_TOKEN" \
2929
-d ''

0 commit comments

Comments
 (0)