Health Check Endpoint
oranuare
PROOP

10 months ago

Hi guys, I need some help here, what am I doing wrong?

I'm trying to setup a health check endpoint for a redis python worker, I created the endpoint with fastapi.

This is my start command:

"startCommand": "python app/main.py & uvicorn app.healthcheck:app --host :: --port $PORT"

The health endpoint I tried /health, private-nework:PORT/health, private-nework/health

And none of those work 🤔

Solved

4 Replies

oranuare
PROOP

10 months ago

Uvicorn is running correctly


10 months ago

You need to listen on 0.0.0.0 for the health check to work.


oranuare
PROOP

10 months ago

Thank you Brody, now its working


10 months ago

!s


Status changed to Solved brody • 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...