'Why new pulled code from git not applied when Gunicorn running on ubuntu server?

I have a django project on ubuntu server that works with Nginx and Gunicorn correctrly.
I change some django code and push on git server and then pull from git server on ubuntu server. It seems new changes not implemented on server. How to fix it? I restart and reload Gunicorn and Nginx but not happend.



Solution 1:[1]

I found the answer we can enter command like this for restarting Gunicorn:

sudo systemctl daemon-reload
sudo systemctl restart gunicorn

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 reza_khalafi