如何在使用docker compose从Drupal 8.7.7升级到8.9.7的过程中解决这个问题?
如何解决以下问题 我已经使用docker部署了drupal 8.7.7。现在我正在尝试升级到8.9.7。在现场安装期间,我面临以下错误 “在SiteInstallCommands.php第335行:无法确定要安装的站点的目标站点目录。请使用--sites-subdir来指定。” docker合成时docker图像的详细日志如何在使用docker compose从Drupal 8.7.7升级到8.9.7的过程中解决这个问题?,docker,drupal,upgrade,drupal-8,Docker,Drupal,Upgrade,Drupal 8,如何解决以下问题 我已经使用docker部署了drupal 8.7.7。现在我正在尝试升级到8.9.7。在现场安装期间,我面临以下错误 “在SiteInstallCommands.php第335行:无法确定要安装的站点的目标站点目录。请使用--sites-subdir来指定。” docker合成时docker图像的详细日志 development.services.yml example.settings.local.php example.sites.php ]] + successStrin
development.services.yml
example.settings.local.php
example.sites.php ]]
+ successString='Drupal bootstrap : Successful'
++ drush status
+ drupalStatus=' Drupal version : 8.9.7
Site URI : http://default
PHP binary : /usr/local/bin/php
PHP config :
PHP OS : Linux
Drush script : /opt/drupal/vendor/drush/drush/drush
Drush version : 10.3.5
Drush temp : /tmp
Drush configs : /opt/drupal/vendor/drush/drush/drush.yml
Drupal root : /opt/drupal/web
Site path : sites/default '
+ debug Drupal installed status : ' Drupal version : 8.9.7
Site URI : http://default
PHP binary : /usr/local/bin/php
PHP config :
PHP OS : Linux
Drush script : /opt/drupal/vendor/drush/drush/drush
Drush version : 10.3.5
Drush temp : /tmp
Drush configs : /opt/drupal/vendor/drush/drush/drush.yml
Drupal root : /opt/drupal/web
Site path : sites/default '
+ [[ DEBUG == \D\E\B\U\G ]]
+ echo Drupal installed status : Drupal version : 8.9.7 Site URI : http://default PHP binary : /usr/local/bin/php PHP config : PHP OS : Linux Drush script : /opt/drupal/vendor/drush/drush/drush Drush version : 10.3.5 Drush temp : /tmp Drush configs : /opt/drupal/vendor/drush/drush/drush.yml Drupal root : /opt/drupal/web Site path : sites/default
Drupal installed status : Drupal version : 8.9.7 Site URI : http://default PHP binary : /usr/local/bin/php PHP config : PHP OS : Linux Drush script : /opt/drupal/vendor/drush/drush/drush Drush version : 10.3.5 Drush temp : /tmp Drush configs : /opt/drupal/vendor/drush/drush/drush.yml Drupal root : /opt/drupal/web Site path : sites/default
+ [[ Drupal version : 8.9.7
Site URI : http://default
PHP binary : /usr/local/bin/php
PHP config :
PHP OS : Linux
Drush script : /opt/drupal/vendor/drush/drush/drush
Drush version : 10.3.5
Drush temp : /tmp
Drush configs : /opt/drupal/vendor/drush/drush/drush.yml
Drupal root : /opt/drupal/web
Site path : sites/default != *Drupal bootstrap : Successful* ]]
+ debug 'Installing Drupal...'
+ [[ DEBUG == \D\E\B\U\G ]]
+ echo Installing Drupal...
+ [[ DEBUG == \D\E\B\U\G ]]
+ out=/dev/stdout
+ set +x
Installing Drupal...
In SiteInstallCommands.php line 335:
Could not determine target sites directory for site to install. Use --sites
-subdir to specify.
site:install [--db-url DB-URL] [--db-prefix DB-PREFIX] [--db-su DB-SU] [--db-su-pw DB-SU-PW] [--account-name [ACCOUNT-NAME]] [--account-mail [ACCOUNT-MAIL]] [--site-mail [SITE-MAIL]] [--account-pass ACCOUNT-PASS] [--locale [LOCALE]] [--site-name [SITE-NAME]] [--site-pass SITE-PASS] [--sites-subdir SITES-SUBDIR] [--config-dir CONFIG-DIR] [--existing-config] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-d|--debug] [-y|--yes] [--no] [--remote-host REMOTE-HOST] [--remote-user REMOTE-USER] [-r|--root ROOT] [-l|--uri URI] [--simulate] [--pipe] [-D|--define DEFINE] [--xh-link XH-LINK] [--notify [NOTIFY]] [--druplicon] [--] <command> [<profile>]...
development.services.yml
example.settings.local.php
example.sites.php]]
+successString='Drupal引导:成功'
++德鲁什状态
+drupalStatus='Drupal版本:8.9.7
站点URI:http://default
PHP二进制文件:/usr/local/bin/PHP
PHP配置:
PHP操作系统:Linux
Drush脚本:/opt/drupal/vendor/Drush/Drush/Drush
Drush版本:10.3.5
桶温度:/tmp
Drush配置:/opt/drupal/vendor/Drush/Drush/Drush.yml
Drupal根目录:/opt/Drupal/web
站点路径:站点/默认'
+调试Drupal安装状态:“Drupal版本:8.9.7”
站点URI:http://default
PHP二进制文件:/usr/local/bin/PHP
PHP配置:
PHP操作系统:Linux
Drush脚本:/opt/drupal/vendor/Drush/Drush/Drush
Drush版本:10.3.5
桶温度:/tmp
Drush配置:/opt/drupal/vendor/Drush/Drush/Drush.yml
Drupal根目录:/opt/Drupal/web
站点路径:站点/默认'
+[[DEBUG==\D\E\B\U\G]]
+echo Drupal安装状态:Drupal版本:8.9.7站点URI:http://default PHP二进制文件:/usr/local/bin/PHP-PHP-PHP-config:PHP-OS:Linux-Drush脚本:/opt/drupal/vendor/Drush/Drush/Drush-Drush版本:10.3.5 Drush-temp:/tmp-Drush-configs:/opt/drupal/vendor/Drush.yml drupal-root:/opt/drupal/web站点路径:sites/default
Drupal安装状态:Drupal版本:8.9.7站点URI:http://default PHP二进制文件:/usr/local/bin/PHP-PHP-PHP-config:PHP-OS:Linux-Drush脚本:/opt/drupal/vendor/Drush/Drush/Drush-Drush版本:10.3.5 Drush-temp:/tmp-Drush-configs:/opt/drupal/vendor/Drush.yml drupal-root:/opt/drupal/web站点路径:sites/default
+[[Drupal版本:8.9.7]
站点URI:http://default
PHP二进制文件:/usr/local/bin/PHP
PHP配置:
PHP操作系统:Linux
Drush脚本:/opt/drupal/vendor/Drush/Drush/Drush
Drush版本:10.3.5
桶温度:/tmp
Drush配置:/opt/drupal/vendor/Drush/Drush/Drush.yml
Drupal根目录:/opt/Drupal/web
站点路径:站点/默认!=*Drupal引导:成功*]]
+调试“安装Drupal…”
+[[DEBUG==\D\E\B\U\G]]
+echo正在安装Drupal。。。
+[[DEBUG==\D\E\B\U\G]]
+out=/dev/stdout
+集合+x
正在安装Drupal。。。
在SiteInstallCommands.php第335行中:
无法确定要安装的站点的目标站点目录。使用--站点
-要指定的子目录。
站点:安装[--db url db-url][--db prefix db-prefix db-su][--db su pw db-su-pw][--db su pw db-su-pw][--account name[account-name]][--account mail[account-mail]][--site mail[site-mail][--site pass account-pass account][site-mail][--site pass account-pass account][--account-pass account-pass account][account-pass][--LOCATE][[--现有配置][h |--帮助][q |--安静][v | v | v | v | v |--详细][v |--版本][ansi][无ansi][n |--无交互][d |--调试][y |--是][否][远程主机远程用户][r |--根用户][l |--uri][模拟][管道][d |--定义链接][xh--链接][通知druplicon][通知...
在建议使用composer now时,您似乎正在尝试使用Drush更新站点。至于Drush,您似乎没有在正确的目录中运行Drush,因此您需要确保该命令在drupal安装路径中运行,或者使用建议的标志指示其位置。但我强烈建议使用composer from Drupal 8