mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 15:42:15 +00:00
13 lines
423 B
CoffeeScript
13 lines
423 B
CoffeeScript
|
# execute this script with a redis container running to test the health check
|
||
|
# starting and stopping redis with this script running is a good test
|
||
|
|
||
|
redis = require "./index.coffee"
|
||
|
|
||
|
rclient = redis.createClient({host:"localhost",port:"6379"})
|
||
|
setInterval () ->
|
||
|
rclient.healthCheck (err) ->
|
||
|
if err?
|
||
|
console.log "HEALTH CHECK FAILED", err
|
||
|
else
|
||
|
console.log "HEALTH CHECK OK"
|
||
|
, 1000
|