Kindly bear with me as this is my first post. I am 100% new to Frappe.
I followed a guide to install frappe+erpnext on my test platform - a VMWare VM on my machine.
During the development testing, all was well and I could log in to the site using http://a.b.c.d:8000. Then I switched to production mode and rebooted the VM. Now the site is supposed to be on http://a.b.c.d:80 and it displays on the browser as if the CSS files are missing and I cannot even login to the site:
Because I think the browser display is something to do with cache, I have cleared browser cache too and that didn’t help.
I also saw a suggestion to add context.no_cache = 1 somewhere, but I don’t know where to add that.
Do bench backup --with-files to take precautionary backup. Then try bench build && bench migrate after that do bench clear-cache Is your frappe production or development?
Thank you for the suggestion. Suppose sh*t hits the fan and I need to restore from backup, what is the command? Just curious, because I don’t want to go over a reinstall. Or should I simply backup the whole directory - /home/frappe/ - to be safe?
As mentioned, I changed from development to production and that is where the problem started.
I have done all you have suggested, but it has not helped. My browser still displays the same useless stuff and I still can’t login.
Do I have to restore files, much as they weren’t working?
I just want a solution for my site to display properly on a browser for now. That’s what’s urgent.
I will keep these notes for the future, as I RTFM.
bench should always be installed in frappe-bench directory within frappe user home directory. All bench commands should be executed from frappe-bench directory.