当前位置:首页 - Python

Python Flask Uwsgi 每次更新都要手动重启uwsgi,如何处理

作者:高景洋 日期:2020-10-16 22:56:17 浏览次数:2759

在 uwsgi.ini 中新增以下 项:


py-autoreload=1


即可,每次py 文件有变化后,自动重启 uwsgi

本文永久性链接:
<a href="http://r4.com.cn/art142.aspx">Python Flask Uwsgi 每次更新都要手动重启uwsgi,如何处理</a>
当前header:Host: r4.com.cn X-Host1: r4.com.cn X-Host2: r4.com.cn X-Host3: 127.0.0.1:8080 X-Forwarded-For: 3.137.214.16 X-Real-Ip: 3.137.214.16 X-Domain: r4.com.cn X-Request: GET /art142.aspx HTTP/1.1 X-Request-Uri: /art142.aspx Connection: close Accept: */* User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) Accept-Encoding: gzip, br, zstd, deflate