I have a custom app that is only for website development (home_page in hooks.py and then www folder contains web pages). After bench install-app, it does not become effective on the site. Whereas it’s properly working in my local environment. I did try to uninstall, install, bench migrate, bench restart, and bench update multiple times. The new website does become effective at all.
To confirm the app installation I checked the custom module is present after logging in to the site.
@gavindsouza
I had to tag you… In one of my bench environment the hooks is not effective. The custom app hooks are not effective at all. How can I debug this ?
@mujeerhashmi After you’ve restored a site on a bench, I’d recommend you run a migrate before anything, to sync the database with the versions of the current apps.
Unsure what the issue you might be facing with install-app. I’m not sure what you mean by “custom app hooks.py does not become effective”. Can you add your reasoning for this statement?
I mean the overrides defined in hooks.py does not take any effect
for ex: home_page = "index"
The new home page does not reflect on the website. similarly overridden white listed methods using override_whitelisted_methods do not execute etc.
When you get back up from the old ERP then it contains the sql.gz file you have to provide the sql.gz file path to the restore command…!!
eg. bench restore /home/user/downloads/…your file name pass here…!! and after it will ask you for your SQL MariaDB root password then provide the password and it’ll restore the database over the site that you have been created…!!
The code that I was written is working fine in my system. even if I don’t know the same code as I have written that you said is not working correctly or not effective…!! well check other posts if you found something then tell…,
@mujeerhashmi have raised same issue in this topic, thats why i am trying to get some help from here, however i’ve created separate topic. @Vaibhav_Parmar thanks for your time bro.