https://pantsbuild.org/ logo
#general
Title
# general
l

lively-exabyte-12840

02/24/2022, 8:59 PM
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

hundreds-father-404

02/24/2022, 9:07 PM
Hi! Are you running it via
./pants run
or
./pants package
then running the built PEX?
l

lively-exabyte-12840

02/25/2022, 12:19 AM
Via ./pants run
h

hundreds-father-404

02/25/2022, 12:28 AM
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
4 Views