From b92fe463876fab4635b55e7d5db5cceb96cfc6de Mon Sep 17 00:00:00 2001 From: Trevor Turk Date: Thu, 3 Mar 2016 11:31:56 -0600 Subject: [PATCH] Checks doc: move redundant content to the same spot for now --- docs/checks-examples.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/checks-examples.md b/docs/checks-examples.md index 65022bf1b..de12c6eac 100644 --- a/docs/checks-examples.md +++ b/docs/checks-examples.md @@ -72,18 +72,6 @@ https://static.example.com/logo.png ### Checks Settings -Dokku will wait `5` seconds before running the checks to give the server time to start. This value can be overridden on a per-app basis in the `CHECKS` file by setting `WAIT=nn`. You may also override this for the global dokku installation: - -```shell -dokku config:set --global DOKKU_CHECKS_WAIT=15 -``` - -Dokku will retry the checks `5` times until the checks are successful. If all 5 checks fail, the deployment is considered failed. This can be overridden in the `CHECKS` file by setting `ATTEMPTS=nn`. This number is also configurable globally: - -```shell -dokku config:set --global DOKKU_CHECKS_ATTEMPTS=2 -``` - The default behavior is to wait for 5 seconds before running the first check, and timeout each check to 30 seconds. By default, checks will be attempted 5 times. (Retried 4 times) @@ -99,6 +87,18 @@ ATTEMPTS=10 # attempt checks 10 times / My Amazing App ``` +Dokku will wait `5` seconds before running the checks to give the server time to start. This value can be overridden on a per-app basis in the `CHECKS` file by setting `WAIT=nn`. You may also override this for the global dokku installation: + +```shell +dokku config:set --global DOKKU_CHECKS_WAIT=15 +``` + +Dokku will retry the checks `5` times until the checks are successful. If all 5 checks fail, the deployment is considered failed. This can be overridden in the `CHECKS` file by setting `ATTEMPTS=nn`. This number is also configurable globally: + +```shell +dokku config:set --global DOKKU_CHECKS_ATTEMPTS=2 +``` + ## Example: Successful Rails Deployment In this example, a rails applicaiton is successfully deployed to dokku. The initial round of checks fails while the server is starting, but once it starts they succeed and the deployment is successful. `ATTEMPTS` is set to 6, but the third attempt succeeds.