I changed this file


But changes are not reflected; I'm in production mode

I deployed static content with

bin/magento setup:static-content:deploy -f fr_FR

cleared the cache

php bin/magento cache:flush
php bin/magento cache:clear

But changes didn't get applied. Should i change mode to developer?


Try to follow this steps(Ubuntu or Linux only) :-

sudo rm -rf pub/static/frontend/ pub/static/adminhtml/ pub/static/_requirejs pub/static/deployed_version.txt var/cache var/page_cache var/generation var/view_preprocessed var/session generated/code  

sudo php bin/magento setup:upgrade  

sudo php bin/magento setup:static-content:deploy fr_FR -f 

sudo php bin/magento cache:flush
  • The js is updated, but I got this message rm: cannot remove ‘var/cache’: Directory not empty rm: cannot remove ‘generated/code/Magento’: Directory not empty Nov 26 '20 at 10:44
  • are you using linux or ubuntu ??
    – Rk Rathod
    Nov 26 '20 at 10:47
  • The server is Centos, which is managed by WHM cpanel Nov 26 '20 at 13:08
  • not worry about this..
    – Rk Rathod
    Nov 27 '20 at 6:46
  • 1
    if answer useful than approve answer for other pepole ,, :)
    – Rk Rathod
    Dec 1 '20 at 6:49

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.