0

Maybe a stupid question, but the answers i can find are all differtent.

I changed some JS in core magento (vendor/magento), what CLI commands i need to make them effective? Is below correct (magento 2.2 with redis cache)

rm -rf generated/code* generated/metadata* var/view_preprocessed/*; rm -R pub/static/*;

php bin/magento cache:flush && php bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento setup:static-content:deploy && php bin/magento setup:static-content:deploy nl_NL && php bin/magento indexer:reindex

1 Answer 1

1

It is no good to use rm -rf (it removes the .htaccess file ), run the second row commands so it can generate by itself :

php bin/magento cache:flush && php bin/magento setup:upgrade && php bin/magento setup:di:compile && php bin/magento setup:static-content:deploy && php bin/magento setup:static-content:deploy nl_NL && php bin/magento indexer:reindex

If that doesn`t show your updates , it means you have an additional cache configured to clean , flush that and will be ok .

5
  • So the removall or empty of the folders is not nescessary at all? Nov 8, 2018 at 10:12
  • Not necessary at all , thats why the commands are made for . I haven`t seen that magento 2 doc suggest using rm -rf for that ;) . Nov 8, 2018 at 10:15
  • @YlgenGuxholli, Please post your answer to here magento.stackexchange.com/questions/249369/… Nov 8, 2018 at 12:10
  • Sorry @jafarpinjar i didnt understood you . What do you mean ? Nov 8, 2018 at 12:14
  • can you update your answer for that issue? Nov 8, 2018 at 12:15

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.