简体   繁体   English

Terminus drush 配置:导入未检测到任何更改

[英]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.我遇到的问题是,当我更改内容类型(例如在博客文章中添加新字段或更改站点名称)时,它并没有更改我在 Pantheon 中的生产站点。

Here are the commands I'm running:这是我正在运行的命令:

In my local machine:在我的本地机器上:

  1. drush cex - this works drush cex - 这有效
  2. git add. git 添加。
  3. git commit -m "change message" git 提交-m“更改消息”
  4. git push to my branch not master git 推送到我的分支不是 master
  5. terminus drush myPantheonsitename.multi-devname -- config:import终点站 drush myPantheonsitename.multi-devname -- 配置:导入

After running step 5 command in terminal, it's telling me that there are no changes to import.在终端中运行第 5 步命令后,它告诉我没有要导入的更改。 I feel as though export and import are looking at different location.我觉得好像出口和进口正在寻找不同的位置。 Any idea why this is happening?知道为什么会这样吗?

I solved the issue by going to settings.php and adding this line of code:我通过转到 settings.php 并添加这行代码解决了这个问题:

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

For some reason, the above code wasn't included in the multi-dev environment I cloned.出于某种原因,上面的代码没有包含在我克隆的多开发环境中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM