문제

I've written some code for an image reconstruction server. I use a python library but it doesn't work for server so I made some changes so that it would work but it never reloads the library. I make the changes and it ignores them. I don't understand how this can be possible? Where does it get this information from and how can I make it get a fresh copy of the library every time?

도움이 되었습니까?

해결책

The Python process started by uWSGI only interprets the source once at startup, any code changes after that will not affect the in-memory process. You should probably just manually restart the uWSGI process when this happens. Alternatively you can tell uWSGI to auto-reload if files or directories change: http://uwsgi-docs.readthedocs.org/en/latest/Options.html#touch-reload.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top