hello! I want use pants in project which i work on...
# general
a
hello! I want use pants in project which i work on but i dont know how to integrate it with code reload. I using flask and
app.run(debug=true)
dont work when i run my build:
./pants run src/python/helloworld:helloworld
. I never use
pants
before so i dont know how to handle code reload in development. I tried use
watchdog
for it but I dont think its way to go:
watchmedo auto-restart --directory=./src ./pants run src/python/helloworld:helloworld
(i know some flags is missing in this example but its only example:D)
a
I'll try it
its not working for my case but using external program for it is not as bad as i think
w
yeah that’s something
a
its python project so i do not need jvm and it make it run faster:
Copy code
[GLOBAL]
backend_packages = ['pants.backend.graph_info', 'pants.backend.python', 'pants.backend.native', 'pants.backend.codegen.thrift.python', 'pants.backend.project_info']
pants.ini