0

I just made some changes over 1 python file in my production server, then tested the changes using "runserver" command:

python3 manage.py runserver 0.0.0.0:3031

The changes are done correctly, then I try to see the same changes in production but using websockets with Django Channels, but the result seems to be that the server is running the old code.

nohup daphne -b 0.0.0.0 -p 3031 asgi:channel_layer &
nohup python manage.py runworker &

What could be the reason, is there any code cache?, what can I do to refresh the code?

4

1 回答 1

0

我发现解决办法是杀死所有“python runworkers”进程,然后用daphne和runworker重启服务器。

sudo pkill python
nohup daphne -b 0.0.0.0 -p 3031 asgi:channel_layer &
nohup python manage.py runworker &
于 2018-12-02T18:08:27.407 回答