LetsMesh / Site

Repository for the Website named Let's Mesh
https://letsmesh.vercel.app
6 stars 2 forks source link

[DevOps] Improve hot reloading for Django Channels with Docker #336

Closed blu3eee closed 3 weeks ago

blu3eee commented 2 months ago

Currently, when running the Django project with Docker and using Django Channels, we need to start the Django server with daphne (daphne -b 0.0.0.0 -p 8000 mesh.asgi:application) instead of the regular python manage.py runserver. This is because Django Channels requires running the ASGI server instead of the WSGI server.

daphne server does not support hot reloading on code changes, which makes the development workflow less efficient when working with Docker containers.

We need to explore better solutions to enable hot reloading for Django Channels when developing with Docker. Some potential solutions to consider is switching to watchgog or uvicorn

blu3eee commented 3 weeks ago

resolved with pr #344