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.
gunicorn's default configuration will listen on and the railway assigned PORT, Daphne won't unfortunately, so we have to tell it to
daphne --bind --port $PORT app.asgi
Yeah, just needed to add :application to the end of it and it worked. Thanks!

Looking for more? Join the community!

Recommended Posts
Does anyone know what the procfile should be for daphne?I'm trying to move from wsgi to asgi in Django and not sure what the procfile command should be. I'No data is being written to the fileHi all. When I start my telegram bot, I log messages. All messages are written to a text document. WBuild failed but not sure whyHi! I'm trying to understand why my build failed, and I can't discern any errors in the logs. Here'sOne service is unable to connect to Postgres container, while the other connects fineHi, I have two typescript services and a postgres service in a project. One of the typescript servicGo Deploy Gone WrongHey all, need a sanity check on a failing deploy. I am able to build and run my app locally just finNeed Help with Discord BotThe bot uses chatgpt and play.ht to generate text, and then read the text in a discord server. When Deploying without having to do npx playwright install-depsHello, I'm deploying a node.js application that is using playwright, and it needs some dependencies Nuxt 3 DeployHi, has anyone done nuxt 3 deploy yet? What do I have to set? Is there a specific setting in nuxt.co'The information you’re about to submit is not secure'I have a very simple fastAPI page that I just began hosting through github on railway. It has a textPayment shows unsuccessful even though it's notHello, I got an email today morning about last month usage (1 Aug - 1 Sep) payment shows unsuccessfDeployment issues in Spring Boot projectHello, I am a newcomer using the Hobby Plan. My project is built on the Spring Boot platform and runBackup DatabaseHi, is it possible to perform or schedule database backups on railway? If so, could you explain how