Skip to content

Commit 84b9388

Browse files
committed
fix: update autoupdate demo description and improve server wait logic
1 parent b8c7f9e commit 84b9388

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Taskfile.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ tasks:
150150
- task: go:lint
151151

152152
autoupdate:demo:
153-
desc: Demo the local auto-update workflow for the Agent
153+
desc: Demo the local auto-update workflow for the Agent (for linux and mac user)
154154
prompt: Before continuing, please make sure you’ve opened the "Open Configuration" option from the Agent menu and set the updateUrl=http://127.0.0.1:3000/
155155
cmds:
156156
- task: go:build
@@ -159,12 +159,7 @@ tasks:
159159
- go-selfupdate -o public/CreateAgent/Stable ./arduino-cloud-agent {{.VERSION}}
160160
- docker rm -f agent-static-server
161161
- docker run --rm -d -v "$PWD/public:/usr/share/nginx/html:ro" -p 3000:80 --name agent-static-server nginx:alpine
162-
- |
163-
echo "Waiting for http://127.0.0.1:3000 to become available..."
164-
until nc -z 127.0.0.1 3000; do
165-
sleep 1
166-
done
167-
echo "Server is up!"
162+
- sleep 5 # wait the server is up before starting the update
168163
- curl -X POST http://127.0.0.1:8991/update
169164

170165

0 commit comments

Comments
 (0)