K
K
KhD2018-09-07 13:27:29
Django
KhD, 2018-09-07 13:27:29

Django gunicorn nginx why is the backend not updating?

Updated the code on the server, restarted gunicorn and nginx, did not help. Restarted completely the server - too. Any ideas?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vadim Shatalov, 2018-09-07
@netpastor

Check again "Updated the code on the server" - it happens, ran git pull - and did not look at the answer - and there is an error, which thread, for example

A
Artyom Innokentiev, 2018-09-07
@artinnok

faced with caching of .pyc files, respectively, old compiled files are executed - try to delete them:
find . -name '*.pyc' -delete

D
Denis Melnikov, 2018-09-07
@Mi11er

When I update, I use the command
git pull && systemctl restart hrporta.service (change to the name of your service)
Although you just restarted the server .... It's more difficult of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question