Django channels, more than one project

44 views
Skip to first unread message

Алексей Кузуб

unread,
Mar 24, 2017, 4:02:12 AM3/24/17
to Django users
Hello! I am using Django channels with daphne. And I want to deploy two projects on one server. How can I do it? Should I run two daphnes or do some routing? And how can I separate workers for two daphnes?

Andrew Godwin

unread,
Mar 24, 2017, 9:25:42 AM3/24/17
to django...@googlegroups.com
Run two Daphne instances, each with a different channel layer configured. To make sure the channel layers for the apps do not conflict, configure them either with different Redis servers or different values for the "prefix" argument to the channel layer on the same server.

Andrew

On Fri, Mar 24, 2017 at 1:02 AM, Алексей Кузуб <roni...@gmail.com> wrote:
Hello! I am using Django channels with daphne. And I want to deploy two projects on one server. How can I do it? Should I run two daphnes or do some routing? And how can I separate workers for two daphnes?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5241949e-47fa-44f7-a65a-1bbf16a7dc13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Алексей Кузуб

unread,
Mar 27, 2017, 3:03:15 AM3/27/17
to Django users
Thank you very much, Andrew! It works for two independent layers. You are really cool and really helped me once again! =)

пятница, 24 марта 2017 г., 16:25:42 UTC+3 пользователь Andrew Godwin написал:
Run two Daphne instances, each with a different channel layer configured. To make sure the channel layers for the apps do not conflict, configure them either with different Redis servers or different values for the "prefix" argument to the channel layer on the same server.

Andrew
On Fri, Mar 24, 2017 at 1:02 AM, Алексей Кузуб <roni...@gmail.com> wrote:
Hello! I am using Django channels with daphne. And I want to deploy two projects on one server. How can I do it? Should I run two daphnes or do some routing? And how can I separate workers for two daphnes?

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages