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?

4
  • 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 Commented Jun 14, 2019 at 7:42
  • After changed to developer mode i used setup:upgrade, then only it's work fine.
    – Priya
    Commented Jun 14, 2019 at 8:39
  • Answer to your question and accept it @mohana Commented Jun 14, 2019 at 8:40
  • But can we use "setup:upgrade" at any time?
    – Priya
    Commented Jun 14, 2019 at 9:11

1 Answer 1

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 and acknowledge you have read our privacy policy.

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