Override local migration config

I'm working on a migration that I'll have to run on the server. I started by putting my local db and files path into my migration module's config, but this gets exported and pushed to dev. I want to just override the config settings locally so this doesn't happen.

Just put this into your settings.local.php to override the config.

$config['migrate_plus.migration.d7_files']['source']['constants']['source_base_path'] = '/home/drupalarchitect/d7_upgrade/d7_files';
$config['migrate_plus.migration_group.d7_upgrade']['shared_configuration']['source']['database'] = [
  'driver' => 'mysql',
  'username' => 'd7_upgrade',
  'password' => 'd7_upgrade',
  'host' => 'database2',
  'port' => '',
  'database' => 'd7_upgrade',
  'prefix' => null
];

Here's some info on Drupal 8's config override system: https://www.drupal.org/docs/8/api/configuration-api/configuration-override-system

Tags
Migration