I just created a new Symfony 3.4 application. Per Symfony's docs, I can server my application using PHP's built-in web-server by running
php bin/console server:start
However -- this appears to run the application in development mode. This means exception printing is on, the developer toolbar shows up, etc.
Is there a way to use the built-in web server with Symfony's production mode? This isn't to serve an application to the public (which wouldn't be a good idea) but instead because I want to test an issue that may only crop up in production mode.
php bin/console server:start --env=prod?app_dev.phpto switch it to PROD. Comment outDebug::enable()and change it toprod, e.g.,$kernel = new AppKernel('prod', false);php bin/console --env=prod server:start?