Customize Symfony for development environment
When you use a development environment similar to the production, you can’t use the app_dev.php
as given.
- With vagrant your front IP could be 192.168.33.10
- With docker you can define a front IP as 172.10.0.1
So open app_dev.php
and change the following code
Keep in mind, always use private IP and don’t include this file during deployment to your production