如何显示部署在数字海洋上的网站的更新?

How to show updates to my website deployed on digital ocean?

我按照本教程在我的数字海洋服务器上部署了一个 Flask 网站:

https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-ubuntu-16-04

太棒了。但是当我更新我的网站时,更改不会出现在为访问者提供服务的网站上。我想我需要重新启动一些东西,比如 nginx 之类的。但我很不确定到底该怎么做。我应该在 Droplet 的终端上输入什么命令来更新和显示新的更改?

您需要使用

重新启动uwsgi
sudo systemctl restart myproject