Magento 2 setup:di:compile – General Question and Answer

magento2setup-di-compile

This is a general question about the magento 2 cli, and what the setup does. Every time i want to install or uninstall a module I have to run the following command.

setup:di:compile

What does this do? Does it take all the new modules and compile them? And what is the difference between this and:

setup:di:compile-multi-tenant

Best Answer

setup:di:compile-multi-tenant

Use this command if you have multiple tenants, which means more than one independent Magento application. In other words:

There is one Magento 2 code base instance

There is one database instance per tenant

Independent configurations in the Magento Admin per tenant

The storefronts are independent of each other

Source: http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-compiler.html

Related Topic