Static View is made with two different words, “static” and “view”. Here, static means that file data can be cached for a site for which files are not dynamically created. And the word view refers to the presentation layer from Model-View-Controller (MVC). In simple words, the deployment commands of static view files enable us to write static files to the Magento 2 file system when we set Magento 2 for production mode.

These static view files are located in Magento’s static directory (your Magento 2 install dir/pub/static) and some files are cached in your Magento 2 install dir/var/view_preprocessed directory. Deployment of static view files is affected by these Magento Modes: Production mode, Default mode, and Developer mode.

We need to write static view files to the Magento 2 file system manually using the CLI command. We can restrict permissions to limit our vulnerabilities and to overwrite files after using the commands I show in this article.

Read This Article on Cloudways Blog: http://www.cloudways.com/blog/deploy...o-2-using-cli/

View more threads in the same category: