https://pantsbuild.org/ logo
c

curved-farmer-66180

02/20/2023, 11:32 PM
Copy code
pants --loop run app/to/:manage -- runserver
pants --loop run app/to/:manage -- runserver --noreload
when I run the server. I cannot reload the server when I change the code. Anybody can help?
Copy code
08:33:51.47 [INFO] Canceled: Building 171 requirements for payhere.app_services.retail/manage.pex from the lockfiles/python-default.txt resolve: amqp==5.1.1; python_version >= "3.6", appdirs==1.4.4, argon2-cffi==20.1.0, asgiref==... (5856 characters truncated)
shows like this
I guess because I change views(related swagger static file) and it got slow to update all dependencies.
h

happy-kitchen-89482

02/21/2023, 3:17 AM
You probably want to do
pants --loop run app/to/manage.py -- runserver --noreload
.
When you run the source, it doesn't rebuild a pex
if your app/to:manage points to a
pex_binary
target then that tells Pants to rebuild the pex file every time, which is slow
c

curved-farmer-66180

02/21/2023, 12:26 PM
Thanks benjy. I forgot what you have told before.
4 Views