I am working on a simple script report and (so far) have only been working in the py file. I’ve tried every combo of bench clear-cache, restart, migrate, and build and the only way I can get my changes to show in the browser is with a full reboot. My site is also in developer mode.
Any ideas on what I could be missing? Or where I can look to see what’s going on?
You’ve already covered most of the tricks for clearing the caches, synchronizing the databases, etc.
There are only 2 other things I always do, whenever I deploy code:
Delete all the Python bytecode in the bench directory, and below.
cd <your_bench_directory_here>
find . -name "*.pyc" -delete
You probably need to run this as root, or elevated using sudo, to delete 100% of the *.pyc bytecode files. Please be very careful you type the command correctly. Otherwise, you could completely destroy ordinary Python files. And then you’ll be reinstalling or rebuilding ERPNext from scratch.
Restart the Frappe web server daemon (not the whole server). Using supervisor or whatever tool you’re using for launching ERPNext services on startup (e.g. systemd unit files)