I'm trying to run a Flask app with debug=True; I s...
# general
l
I'm trying to run a Flask app with debug=True; I saw https://github.com/pantsbuild/pex/issues/1172 and then read through https://www.pantsbuild.org/docs/reference-pex_binary and thought that the solution may be to set execution_mode=venv in the BUILD file. That didn't work, but if I change the Flask app to run with debug=False and then restartable=True in the BUILD file, I get the desired behavior. Is that expected behavior, or should execution_mode=venv also work?
h
Hi! Are you running it via
./pants run
or
./pants package
then running the built PEX?
l
Via ./pants run
h
My teammate Stu knows a lot better than me and will be getting back from vacation tomorrow. But in the meantime, yeah, I believe this is intended. If Stu confirms, we should probably think about how better to document this