Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminus drush config:import detecting no changes

I cloned a multi-dev environment to my local machine and the website is working fine. I have the database, files, and code working on the local machine. The problem I'm encountering is when I make changes to a content type like adding a new field in the blog post or changing the sitename, it's not changing my production site in Pantheon.

Here are the commands I'm running:

In my local machine:

  1. drush cex - this works
  2. git add .
  3. git commit -m "change message"
  4. git push to my branch not master
  5. terminus drush myPantheonsitename.multi-devname -- config:import

After running step 5 command in terminal, it's telling me that there are no changes to import. I feel as though export and import are looking at different location. Any idea why this is happening?

like image 601
edelcodes Avatar asked Nov 19 '25 21:11

edelcodes


1 Answers

I solved the issue by going to settings.php and adding this line of code:

$settings['config_sync_directory'] = 'sites/default/sync';

For some reason, the above code wasn't included in the multi-dev environment I cloned.

like image 193
edelcodes Avatar answered Nov 22 '25 01:11

edelcodes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!