Magento 2 can run in one of three primary modes -- developer, production, and default. But aside from that ones there is also a maintenance mode, which is used when you want to make the site unavailable to the public during updates or other changes. You don’t use the MAGE_MODE variable -- instead, you create a…
Set Environment Variable [Developer or Production Mode] (M2)
First, will be a good idea to check the current MODE: php bin/magento deploy:mode:show The main idea is to have this (environment) variable MAGE_MODE set to one of this values: Default Developer Production To change the MODE in Magento for the moment there are 3 ways: From CLI (you'll be 100% sure it changed) # we are using…