Deploy Flower (Django / Celery)

a year ago

I am trying to publish the Flower UI for my Django application. I deployed my app and added celery -A core --address=0.0.0.0 --port=5555 as the Custom Start Command, however i get a 502 Bad Gateway error when trying to access it through the public url. Any idea how I can make it work?

2 Replies

a year ago

I found the solution: add instead --port=$PORT to the start command. Make also sure that the ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS are set correctly. I will publish a video soon about this and how to deploy a Django app with celery, flower and beat on https://www.youtube.com/@ajudmeister


a year ago

Please update this thread when you do that, I always love watching videos people make about Railway!


Deploy Flower (Django / Celery) - Railway Help Station