我不知道为什么要这么难,但是我只是想让我的uWSGI
服务器在nginx
和docker之后自动重新加载。
我尝试将以下内容添加到我的uwsgi.ini
中:
py-autoreload = 1
和
python-autoreload = 1
但是每次我重建图像时,我都会得到:
web_1 | Respawned uWSGI worker 1 (new pid: 18)
web_1 | Python auto-reloader enabled
web_1 | !!! uWSGI process 18 got Segmentation Fault !!!
web_1 | *** backtrace of 18 ***
web_1 | uwsgi(uwsgi_backtrace+0x35) [0x564d50bddcb5]
web_1 | uwsgi(uwsgi_segfault+0x23) [0x564d50bde063]
web_1 | /lib/x86_64-linux-gnu/libc.so.6(+0x33060) [0x7f9c34d3c060]
web_1 | /usr/local/lib/libpython3.7m.so.1.0(PyBytes_AsString+0) [0x7f9c35373a40]
web_1 | uwsgi(uwsgi_python_autoreloader_thread+0x166) [0x564d50bf5436]
web_1 | /lib/x86_64-linux-gnu/libpthread.so.0(+0x7494) [0x7f9c36e93494]
web_1 | /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f9c34df1acf]
web_1 | *** end of backtrace ***