I have a dev and production instance. Many hooks.py functionalities are not being picked up and executed in the production server, but work fine in the dev instance.
I can confirm this after doing the following in both environments,
bench --site <site-name> console frappe.get_hooks('doc_events')
The output of frappe.get_hooks has only the entries it picks up from the out-of-box frappe and erpnext apps while ignoring the customized app.
( Though on doing bench console, I am shown a message saying Apps in this namespace:
frappe, erpnext, )
What am I missing?