How to Enable and check Developer Mode in Magento2 - magento source24
In this blog post im share with you to How to Enable and check Developer Mode in Magento2 - In this post im given two command to Enable and check Developer Mode of your magento project.
- Log in to your store and navigate to project root of your store.
- Clean generated classes and other entities using this coammnd - rm -rf var/di/* var/generation/*
- Run this bellow given Switch to developer mode using command
php bin/magento deploy:mode:set developer
👉 When you change to developer mode | production mode, clear the contents of following directories:
- var/cache
- generated/metadata
- generated/code
- var/view_preprocessed
- pub/static
In this case a Exceptions generated when you are delete .htaccess file in your generated folder, to avoid exceptions better not to .htaccess delete the file
How to Display the current mode of project in magento2.
to check mode of magento2 project run this bellow given command :
php bin/magento deploy:mode:show