Monday, 12 January 2015

Set/Enable developer mode in Magento 2

Magento 2 is already out for developers for testing and contributing improvements. After installing magento 2, you need to enable the Developer mode to show the errors on browser. Else, the errors will be logged into a separate file under var/report.

There are multiple ways to enable a developer mode
Via Console
Run the following command "php bin\magento deploy:mode:developer"

Edit env.php
'MAGE_MODE' => 'developer'  add this line on your env.php file below 'x-frame-options'

Just add this below line on your index.php file
$_SERVER['MAGE_MODE'] = 'developer';

Place the code above on line 1. Above all the codes which was there already.

No comments:

Post a Comment