Hi all,

I'm trying to switch from gunicorn to Daphne for my Django app on GAE Flex, 
since I need to use Django Channels. Previously the site worked fine with 
gunicorn as entrypoint (in the app.yaml file). I just replaced it with 
daphne so my yamlfile looks like this:

runtime: python
env: flex

runtime_config:
  python_version: 3

entrypoint: daphne -b 0.0.0.0 -p 8001 my_project_name.asgi:application


I've already made a .asgi file next to my .wsgi file and declared an 
application there.

In requirements.txt I've ensured the daphne(2.4.1) and asgiref(3.2.3) 
packages are the latest versions.

Finally when I do 'gcloud app deploy', deployment appears to happen 
smoothly and in the build logs I can see daphne starting:


Step #1: Step 9/9 : CMD exec daphne -b 0.0.0.0 -p 8001 
my_project_name.asgi:applicationStep #1:  ---> Running in c6f3762a5ce2


But when I go to the site, I'm seeing a 502 Bad Gateway error on the site, 
with "nginx" in the next line. 


Is there a way to deploy Daphne without going into nginx configurations etc? 
I'm using an app engine only because I wanted to avoid doing micro-level tweaks 
on a cloud machine.

Thanks,
Rahul.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dfb79af0-663c-4581-8fab-f06d2281d875%40googlegroups.com.

Reply via email to