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
Jilco Tigchelaar
  • 411
  • 3
  • 7
  • 21

1 Answers1

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 .

Ylgen Guxholli
  • 2,585
  • 12
  • 20