Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urlオプションがあるとsearch-replaceが機能しないマルチサイトがある #8

Open
planpot opened this issue Jul 5, 2019 · 0 comments

Comments

@planpot
Copy link

planpot commented Jul 5, 2019

以下の問題に近いと思うのですが、bash-wp-deployでも特定条件のマルチサイトでpull -t,push -tともにsearch-replaceが機能しないままデータベースがinport/exportされてしまいます。
https://discourse.roots.io/t/wp-cli-doesnt-work-on-multisite-subfolders/5002

--urlオプションを外すと動作したのであとで置換するという場当たりな対応で凌いでいますが、報告としてIssueたてました。

wp search-replace ${SERVER_URL} ${LOCAL_SERVER_URL} --network > /dev/null
wp search-replace ${SERVER_NAME} ${LOCAL_SERVER_NAME} --network > /dev/null

この現象が発生したマルチサイトのconfigは以下の通りです。参考まで

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'sample.com');
define('PATH_CURRENT_SITE', '/subfolder/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant