Does anyone know what the procfile command should be for Django Daphne?
I'm trying to move from wsgi to asgi in Django and not sure what the procfile command should be.
I've tried changing gunicorn app.wsgi to `daphne app.asgi but it didn't work.
4 Replies
Project ID:
N/A
N/A
gunicorn's default configuration will listen on 0.0.0.0 and the railway assigned PORT, Daphne won't unfortunately, so we have to tell it to
daphne --bind 0.0.0.0 --port $PORT app.asgi
Yeah, just needed to add
:application
to the end of it and it worked. Thanks!