Adds environment port to curl healthcheck

This commit is contained in:
H3npi 2019-09-04 09:12:53 +02:00
parent 66a68f6d22
commit cce3ce816c

View File

@ -2,7 +2,7 @@
if [ -z "$ROCKET_TLS"] if [ -z "$ROCKET_TLS"]
then then
curl --fail http://localhost/alive || exit 1 curl --fail http://localhost:${ROCKET_PORT:-"80"}/alive || exit 1
else else
curl --fail https://localhost/alive || exit 1 curl --fail https://localhost:${ROCKET_PORT:-"80"}/alive || exit 1
fi fi