Skip to main content
Polls the health endpoint until the proxy reports ready. Useful in Procfiles, scripts, and CI pipelines to ensure the proxy is accepting connections before starting dependent applications.

Usage

cordon wait [OPTIONS]

Options

OptionDefaultDescription
--urlhttp://127.0.0.1:6790/healthHealth check URL
--timeout30Timeout in seconds

Examples

# Wait with defaults
cordon wait

# Wait with custom timeout
cordon wait --timeout 60

# Use in a Procfile
# web: cordon wait && npm run dev

Exit codes

CodeMeaning
0Proxy is ready
1Timeout reached — proxy did not become ready