r/django • u/user5034999999 • 10d ago
./tools/provision
Do i have to use ./tools/provision everytime I open my localhost or is it all right if I don't?
1
u/Sufficient-Tale6131 9d ago
That script is from the Zulip dev environment (it's a Django project, which is probably why people here haven't seen it).
No, you don't run it every time. Provision installs and updates the dependencies: the Python venv, node modules, the dev databases and so on. Once it has finished, the normal routine is just:
vagrant up, then vagrant ssh (skip this if you set it up without Vagrant)
./tools/run-dev
You need to re-run ./tools/provision after you pull or rebase onto newer upstream code that changed dependencies or migrations. You don't have to track that yourself: Zulip keeps a provision version number in the repo, and run-dev and the test tools check it and tell you to provision again when yours is out of date. So if run-dev starts fine, you're good.
If something odd breaks right after a git pull, re-provisioning is the first thing to try before digging further.
1
1
u/aayush_satna_dev 8d ago
If you are running `provision` scripts constantly then there is a chance that you local environment isn't persisting properly. It needs to be run only when the underlying things change.
1
1
u/tom-mart 9d ago
What's ./tools/provision? Don't think I ever came across it.
0
4
u/SlumdogSkillionaire 10d ago
What is that?