You can put all the parameters used in your dev environment into the app\config\parameters_dev.yml file (you need to create it) and then import it into your app\config\config_dev.yml :
imports: - { resource: config.yml } - { resource: parameters_dev.yml }
Therefore, when you work in local mode, any parameter used in production will be overwritten with a new file with the correct parameters.
And don't forget to clear the cache!
source share