Skip to content

Commit 99ac46e

Browse files
committed
added note about deploy timeout
1 parent 5ff6f3f commit 99ac46e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/cli/deployments.md

+20
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,23 @@ zuplo deploy --environment my-env-name
4848

4949
zuplo deploy --no-verify-remote
5050
```
51+
52+
## Polling Timeout
53+
54+
By default, the deploy command will poll the status of the deployment every
55+
second for 150 seconds. For most deployments this is enough time for the build
56+
and deploy process to complete. However, if you have a large project, this may
57+
not be enough time. You can increase the timeout by setting the following
58+
environment variables.
59+
60+
- `POLL_INTERVAL` - The interval in seconds between each poll. Default is 1
61+
second.
62+
- `MAX_POLL_RETRIES` - The maximum number of retries before the command times
63+
out. Default is 150.
64+
65+
```bash
66+
POLL_INTERVAL=5000 MAX_POLL_RETRIES=300 zuplo deploy
67+
```
68+
69+
Note, that even if the CLI times out, the deployment will continue. You can
70+
check the status of the deployment in the Zuplo portal.

0 commit comments

Comments
 (0)