R
Railway15mo ago
Iceman

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
Percy
Percy15mo ago
Project ID: N/A
Iceman
IcemanOP15mo ago
N/A
Brody
Brody15mo ago
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
Iceman
IcemanOP15mo ago
Yeah, just needed to add :application to the end of it and it worked. Thanks!
Want results from more Discord servers?
Add your server