0

As when I change in .html file do I need to run setup:upgrade, setup:static-content:deploy and permissions to get changes.

4
  • 1
    get your question's answer from here
    – Hitesh
    Oct 6, 2018 at 6:17
  • Any other way is there where i don't need to run commands Hit's Oct 6, 2018 at 6:18
  • 1
    Set developer mode . no need to run command it will deploy content automatically Oct 6, 2018 at 6:23
  • if i set Set developer mode website is not loadind giving pub has blocked Mukesh Prajapati Oct 6, 2018 at 6:41

1 Answer 1

1

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 )

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.