Why do I need to restart every time I deploy python flask using Gunicorn to see the effect?

use the following command to launch the flask application
gunicorn-- workers=2 hello:app-b 0.0.0.0 workers=2 hello:app 80
in ubuntu, but the above command cannot make the application take effect immediately. You need to restart each time to see the modified effect. What do you need to do to refresh the application without restarting it?

Mar.12,2021

versions above can add -- reload parameter

https://stackoverflow.com/que.

Menu