I’ve been working on a dev machine, and following the structure of the erpNext app, I created a folder under public called less, added all my less files to that directory and then updated my build.json to reflect the files.
On the dev box, every-time I update and save the less files, they get compiled to valid CSS. However, I just built a production box, installed my app, and the Less files, are being updated in the CSS folder, but they are not being compiled to CSS. Its just the less code. I tried to do a “bench build” and “bench clear-cache” but the files are staying as less files.
Is there a command I am suppose to execute on production, to get the less files to compile and ready to serve?
Still can not find any errors… So the quick work around, is after I install the app in production, and it goes through the process of installing and compiling the JS and LESS, I go back to my app in the apps directory and do a git reset (since the LESS code has been placed in the CSS Directory), and a git pull and it syncs back the CSS files in the CSS folder that was compiled on the DEV box and submitted to teh repo.
This is a quick fix, of course, I have to worry about at some point the LESS getting rebuilt at any time if I have to run certain bench commands.
So as of now, the production app/site mirrors DEV, but only due to the stated above band aid.
Can anyone steer me in the direction of a place to start looking. I’ve grep’d the frappe_bech/logs directory for errors and only errors I see are related to:
Which I’m assuming/guessing is not related, and will revisit that error after this css issue is resolved.