Magento 2.1.7 Command issuse
-
30-01-2021 - |
Frage
As when I change in .html file do I need to run setup:upgrade, setup:static-content:deploy and permissions to get changes.
Lösung
If you have changed following / Forntend files:
.html, .phtml , .xml ( layout ), .js, .css
and you are in default mode ( to check, php bin/magento deploy:mode:show ) then you should run Only following commands to take your changes effect :
Deploy static content :
php bin/magento setup:static-content:deploy -f
Flush cache:
php bin/magento cache:flush
if you are in developer mode then you don't need to deploy-static-content just flush cache and your changes will take effect.
NOTE : if you are using linux then you might need to set permission too. so better way is just change your project folder ownership to www-data:www-data ( default apache user / group )