【发布时间】:2015-04-08 15:17:48
【问题描述】:
我通过作曲家安装了一个 wordpress 项目,带有基本配置。
我使用 capistrano 进行部署。
这里,我的 composer.json 文件:
{
"name": "my-project",
"type": "project",
"autoload": {
"psr-0": {"Roots\\Bedrock\\Installer": "scripts"}
},
"repositories": [
{
"type": "composer",
"url": "http://wpackagist.org"
}
],
"require": {
"php": ">=5.5",
"composer/installers": "~1.0",
"vlucas/phpdotenv": "~1.0",
"johnpbloch/wordpress": "~4.1",
"wp-cli/wp-cli": "~0.18"
},
"scripts": {
"post-root-package-install": ["Roots\\Bedrock\\Installer::addSalts"]
},
"config": {
"bin-dir": "bin",
"generate-salts": true
},
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"installer-paths": {
"web/app/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"web/app/plugins/{$name}/": ["type:wordpress-plugin"],
"web/app/themes/{$name}/": ["type:wordpress-theme"]
},
"wordpress-install-dir": "web/wp"
}
}
我想安装 fr_FR 语言,所以我运行了以下 wp-cli 命令:
./bin/wp core language install fr_FR
这在本地就像一个魅力,但不是在 capistrano 部署后的服务器上。我想调试它,但除了这个错误我什么都没有:
htdocs/current$ ./bin/wp --debug core language install fr_FR
Error: Couldn't install language.
有人遇到过这个问题吗?如何解决?
非常感谢。
【问题讨论】:
标签: php wordpress capistrano3