Types of mode’s in Magento2:
Magento-2 is having there are 3 different modes. Following are the modes,Magento-2 is having there are 3 different modes. Following are the modes,
1. Default
2. Developer
3. Production.
(I) Default Mode:
1. Once we setup the magento2 by default system will assign to default mode.
2. Using this mode we can run the magento application with in a single server with out changing any settings.
3. Using this mode, errors are won’t visible to the user (frontend use)
4. Errors are logged to the file system.
5. Symlink to a static view file is published to the pub/static folder.
(II) Developer Mode:
1. Once magento setup is done by the developer, they have to change the mode developer instead of default.
2. Using this mode developer can see the exceptions on browser.
3. Symlink to a static view file is published to the pub/static folder
4. Exception is thrown in the error handler, instead of the logging into the file.
5. This developer mode is most adapted for developer end. Easily developer the track the error & log.
6. There is a chances to get page load with this mode.
(III) Production mode:
1. We have to enable production mode when magento system moving the live or production server.
2. When we enable the production mode on production server, seems the performance level it will good.
3. Also errors are logged to the file system , error won’t visible to the frontend views on production mode.
Use full commands:
php bin/magento deploy:mode:show
php bin/magento deploy:mode:set <MODE> (Ex: default, developer, production)
Note: Whenever we are changing the mode , suggested to run the static deploy commands. While before running the commandremoving following foldersvar/cachevar/divar/generationvar/view_preprocessedpub/static
More info is available in magento developer document website.
“Save Trees, be Healthy.“