Magento 2 – Not Working After bin/magento setup:di:compile Command

magento-2.0magento-2.1magento2

I ran below Command:

bin/magento setup:di:compile

I have tried to upgrade my module with:

$ php bin/magento setup:upgrade

The end result was:

Please re-run Magento compile command

After doing this magento site is not working.

Best Answer

Please go to app\bootstrap.php

Do comment below line

error_reporting(E_ALL);
#ini_set('display_errors', 1);

& check for error in browser or check log files under var/log or var/report folders

Try to run below commands as well

php bin/magento cache:clean
php bin/magento cache:flush