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

adamant-quill-79654

08/14/2018, 11:09 AM
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

adamant-quill-79654

08/14/2018, 8:31 PM
I'll try it
its not working for my case but using external program for it is not as bad as i think
w

wide-energy-11069

08/15/2018, 6:42 AM
yeah that’s something
a

adamant-quill-79654

08/16/2018, 7:58 AM
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
3 Views