Checks doc: add an example for the simple check for the Rails deployment example
This commit is contained in:
1 parent
2df9bbeb83
commit
b8c264f173
1 file changed
+5
-1
@@ -109,7 +109,11 @@ ATTEMPTS=6
|
|||||||
/check.txt simple_check
|
/check.txt simple_check
|
||||||
````
|
````
|
||||||
|
|
||||||
> check.txt is a text file returning the string 'simple_check'
|
For this check to work, we've added a line to `config/routes.rb` that simply returns a string:
|
||||||
|
|
||||||
|
````
|
||||||
|
get '/check.txt', to: proc {[200, {}, ['simple_check']]}
|
||||||
|
````
|
||||||
|
|
||||||
### Deploy Output
|
### Deploy Output
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user