2019-08-27 05:23:55 -04:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
if [ -z "$ROCKET_TLS"]
|
|
|
|
then
|
2019-09-04 03:12:53 -04:00
|
|
|
curl --fail http://localhost:${ROCKET_PORT:-"80"}/alive || exit 1
|
2019-08-27 05:23:55 -04:00
|
|
|
else
|
2019-09-11 16:01:42 -04:00
|
|
|
curl --insecure --fail https://localhost:${ROCKET_PORT:-"80"}/alive || exit 1
|
2019-08-27 05:23:55 -04:00
|
|
|
fi
|