我在Django写的DigitalOcean上部署了我的webapp。现在我更改并在其中添加一些文件。我更改了模板文件夹,并在静态文件夹中添加了一些照片。更改之后,我将从我的服务器应用程序目录中的github中提取更改。但我看不到变化。我停止nginx服务器。我用这个命令
sudo systemctl start nginx sudo systemctl stop nginx sudo systemctl restart nginx
然后我再次开始,但没有改变。我该怎么办?
为了重新加载django应用程序,请重新启动 gunicorn 服务。
gunicorn
sudo systemctl restart gunicorn