File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ services:
26
26
ports :
27
27
- 127.0.0.1:8003:80
28
28
environment :
29
- ZIMFARM_WEBAPI : http://localhost:8002 /v1
29
+ ZIMFARM_WEBAPI : http://localhost:8004 /v1
30
30
depends_on :
31
31
- zimfarm_api
32
32
zimit_api :
Original file line number Diff line number Diff line change 1
1
echo " Retrieving access token"
2
2
3
3
ZF_ADMIN_TOKEN=" $( curl -s -X ' POST' \
4
- ' http://localhost:8002 /v1/auth/authorize' \
4
+ ' http://localhost:8004 /v1/auth/authorize' \
5
5
-H ' accept: application/json' \
6
6
-H ' Content-Type: application/x-www-form-urlencoded' \
7
7
-d ' username=admin&password=admin' \
@@ -10,7 +10,7 @@ ZF_ADMIN_TOKEN="$(curl -s -X 'POST' \
10
10
echo " Get last requested task"
11
11
12
12
LAST_TASK_ID=" $( curl -s -X ' GET' \
13
- ' http://localhost:8002 /v1/requested-tasks/' \
13
+ ' http://localhost:8004 /v1/requested-tasks/' \
14
14
-H ' accept: application/json' \
15
15
-H " Authorization: Bearer $ZF_ADMIN_TOKEN " \
16
16
| jq -r ' .items[0]._id' ) "
23
23
echo " Start task"
24
24
25
25
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" \
27
27
-H ' accept: application/json' \
28
28
-H " Authorization: Bearer $ZF_ADMIN_TOKEN " \
29
29
-d ' '
You can’t perform that action at this time.
0 commit comments