Do I Need if __name__ == ‘__main__’: app.run() in My Flask App on WSGI Server?
I’m deploying a Flask application to an WSGI server. In my development code, I have the typical if name == ‘main‘: app.run() block to run the app locally. I’m unsure if this code snippet is necessary when using an WSGI server.