为什么在Ubuntu Server上运行Gunicorn时,为什么不应用GIT的新拔出代码?

发布于 2025-01-27 07:35:52 字数 108 浏览 4 评论 0原文

我在Ubuntu Server上有一个 django 项目,可与 nginx Gunicorn

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傾旎 2025-02-03 07:35:52

我发现我们可以这样输入命令的答案以重新启动Gunicorn:

sudo systemctl daemon-reload
sudo systemctl restart gunicorn

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

sudo systemctl daemon-reload
sudo systemctl restart gunicorn
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文