Category : daphne

I was setting up Django app in docker with gunicorn + nginx + daphne. But I’m not able to get the app running with daphine error log showing this: Traceback (most recent call last): File "/usr/local/bin/daphne", line 8, in <module> sys.exit(CommandLineInterface.entrypoint()) File "/usr/local/lib/python3.6/dist-packages/daphne/cli.py", line 191, in entrypoint cls().run(sys.argv[1:]) File "/usr/local/lib/python3.6/dist-packages/daphne/cli.py", line 252, in run application ..

Read more

We are attempting to configure a live-chat on our website, through the use of Django Channels 2, AWS, and Nginx + Daphne. Our setup works fine running locally, however we are running in to issues when deploying to production. Our production environment consists of two Docker containers that are deployed to AWS using Elastic Container ..

Read more

I build a docker where the last command line runs python script through daphne. I want to pass some parameter to my script in docker running time. Right now I havethis line: CMD daphne -b 0.0.0.0 –proxy-headers -e ssl:8085:privateKey=/etc/tls.key:certKey=/etc/tls.crt:extraCertChain=gd.crt server:app where server is my python script. I want to pass some parameters like: CMD daphne ..

Read more

So I built a chat app and deployed it with heroku. Since I’m on hobby-dev I can only have 20 connections to postgres, so following some suggestions online I decided using pgbouncer may be a good idea. The heroku document on setting the buildpack up (for example, last part of https://devcenter.heroku.com/articles/python-concurrency-and-database-connections#number-of-active-connections) are limited and everything ..

Read more