2

I'm in Production mode. I like to change some styles in my website, so i edited .less

for example:

app/design/frontend/Templatemonster/theme/web/css/styles-l.less

I used "flush Magento cache" from backend and run

 setup:static-content:deploy 

still my modified files not updated. What can I use to solve this problem?

  • Firstly check do you have your changes in generated files if not then change it developer mode and rm the generated files in pub/stati then deploy it and I guess it will work from now – Prathap Gunasekaran Jun 14 at 7:42
  • After changed to developer mode i used setup:upgrade, then only it's work fine. – Priya Jun 14 at 8:39
  • Answer to your question and accept it @mohana – Prathap Gunasekaran Jun 14 at 8:40
  • But can we use "setup:upgrade" at any time? – Priya Jun 14 at 9:11
2

you should never edit files on your prod-system! you should fix your deployment process if you have to do that!

you need to delete all files in var/view_preprocessed and run bin/magento setup:static-content:deploy to recompile the less.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.