Created
December 14, 2016 08:01
-
-
Save mjavadhpour/088dddde07a9d399eb9006f1e6308c15 to your computer and use it in GitHub Desktop.
Turn on _profiler in server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cut from app/config/config_dev.yml and paste to app/config/config.yml | |
framework: | |
... | |
... | |
profiler: { only_exceptions: false } | |
web_profiler: | |
toolbar: false | |
intercept_redirects: false | |
cut from app/config/routing_dev.php and paste to app/config/routing.php | |
_wdt: | |
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" | |
prefix: /_wdt | |
_profiler: | |
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" | |
prefix: /_profiler | |
Edit app/AppKernel.php | |
$bundles = array( | |
... | |
... | |
new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(), | |
); | |
if (in_array($this->getEnvironment(), array('dev', 'test'))) { | |
... | |
... | |
//$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); | |
... | |
... | |
} | |
export SYMFONY_ENV=prod | |
composer install --no-dev --optimize-autoloader | |
sudo rm -rf app/cache/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment