ユーザ用ツール

サイト用ツール


cms:drupal:upgrade9:start

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
cms:drupal:upgrade9:start [2022/01/06 11:09] – 作成 kingcms:drupal:upgrade9:start [2022/01/10 12:50] (現在) king
行 1: 行 1:
-====== 8->し ======+====== 8->Try ====== 
 +独自ドメイン配下のサブフォルダのまま実施てみる。フォルダごとバックアップとるのと、buckup_migradeモジュールでデータベースのバックアプを保存 
 +<code sh> 
 +$ cp -R www_cycle_eek8 _bk/ 
 +</code> 
 + 
 +===== pdate statusモジュール ===== 
 +update statusモジュールを入れる  https://www.drupal.org/project/upgrade_status/ 
 + 
 +有効化したら怒られる\\ 
 +<blockquote>External dependencies for Upgrade Status are not available. Composer must be used to download the module with dependencies. See the [[https://www.drupal.org/project/upgrade_status/|Upgrade Status project page]] for instructions. 
 +</blockquote> 
 +二つにことが書かれている 
 +  * すでにcomposerを使用しているサイトへのインストール 
 +  * Composerを使用していないサイトへのインストール 
 + 
 +サイトのことが書いてあるので、composerがあるかどうかということと勝手に解釈して下記を実施(上のページに記載の通り、あんまり意味わかってない) 
 + 
 +<code sh> 
 +$ composer show drupal/core | grep versions 
 +$ composer require --dev drupal/core-dev:[copy version above] --update-with-all-dependencies 
 +$ composer require drupal/upgrade_status 
 +</code> 
 + 
 +== composer show drupal/core | grep versions == 
 +composer/installers contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins 
 +Do you trust "composer/installers" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] 
 + 
 +composer / installersには、現在allow-plugins構成にないComposerプラグインが含まれています。 https://getcomposer.org/allow-pluginsを参照してください 
 +「composer / installers」がコードを実行することを信頼し、今すぐ有効にしたいですか? (composer.jsonに「allow-plugins」を書き込みます)[y、n、d、?] 
 + 
 +後3個ほど出るけど、一応全部「d」で。すると、「versions : * 8.9.8」と出た。Drupalのバージョンを調べておくということだったのか、知ってたけど。 
 + 
 +== composer require --dev drupal/core-dev:8.9.8 --update-with-all-dependencies == 
 +[copy version above]はさっきのバージョン番号を入れてみる 
 +<code sh> 
 +drupal/core-composer-scaffold contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins 
 +Do you trust "drupal/core-composer-scaffold" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y 
 +有効にしますかと聞いているようなので、あと2つ出たけど、今度は全部「y」で。 
 +./composer.json has been updated 
 +Running composer update drupal/core-dev --with-all-dependencies 
 +Loading composer repositories with package information 
 +Updating dependencies 
 +Lock file operations: 54 installs, 0 updates, 0 removals 
 +  - Locking behat/mink (v1.9.0) 
 +(中略) 
 +  - Locking webmozart/assert (1.10.0) 
 +Writing lock file 
 +Installing dependencies from lock file (including require-dev) 
 +Package operations: 54 installs, 0 updates, 0 removals 
 +  - Downloading symfony/dom-crawler (v3.4.47) 
 +(中略) 
 +  - Downloading behat/mink-selenium2-driver (v1.5.0) 
 +  - Downloading fabpot/goutte (v3.2.3) 
 +  - Downloading behat/mink-goutte-driver (v1.3.0) 
 +  - Installing symfony/dom-crawler (v3.4.47): Extracting archive 
 +  - Installing symfony/browser-kit (v3.4.47): Extracting archive 
 +(中略) 
 +  - Installing behat/mink-goutte-driver (v1.3.0): Extracting archive 
 +  - Installing drupal/core-dev (8.9.8) 
 +    Cleaning: symfony/dom-crawler 
 +(中略) 
 +    Cleaning: behat/mink-goutte-driver 
 +6 package suggestions were added by new dependencies, use `composer suggest` to see details. 
 +Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. 
 +Generating autoload files 
 +Hardening vendor directory with .htaccess and web.config files. 
 +50 packages you are using are looking for funding. 
 +Use the `composer fund` command to find out more! 
 +Cleaning vendor directory. 
 +</code> 
 + 
 +== composer require drupal/upgrade_status == 
 +<code sh> 
 +Using version ^3.13 for drupal/upgrade_status 
 +./composer.json has been updated 
 +Running composer update drupal/upgrade_status 
 +Loading composer repositories with package information 
 +Updating dependencies 
 +Lock file operations: 12 installs, 0 updates, 0 removals 
 +  - Locking container-interop/container-interop (1.2.0) 
 +(中略) 
 +  - Locking webflo/drupal-finder (1.2.2) 
 +Writing lock file 
 +Installing dependencies from lock file (including require-dev) 
 +Package operations: 12 installs, 0 updates, 0 removals 
 +  - Downloading phpstan/phpstan (1.3.1) 
 +(中略) 
 +  - Downloading drupal/upgrade_status (3.13.0) 
 +  - Installing webflo/drupal-finder (1.2.2): Extracting archive 
 +  - Installing phpstan/phpstan (1.3.1): Extracting archive 
 +  - Installing phpstan/phpstan-deprecation-rules (1.0.0): Extracting archive 
 +  - Installing nikic/php-parser (v4.13.2): Extracting archive 
 +  - Installing nette/utils (v3.2.6): Extracting archive 
 +  - Installing nette/finder (v2.5.3): Extracting archive 
 +  - Installing mglaman/phpstan-drupal (1.1.5): Extracting archive 
 +  - Installing container-interop/container-interop (1.2.0): Extracting archive 
 +  - Installing laminas/laminas-servicemanager (3.10.0): Extracting archive 
 +  - Installing laminas/laminas-text (2.8.1): Extracting archive 
 +  - Installing mathieuviossat/arraytotexttable (v1.0.8): Extracting archive 
 +  - Installing drupal/upgrade_status (3.13.0): Extracting archive 
 +3 package suggestions were added by new dependencies, use `composer suggest` to see details. 
 +Package container-interop/container-interop is abandoned, you should avoid using it. Use psr/container instead. 
 +Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. 
 +Generating autoload files 
 +Hardening vendor directory with .htaccess and web.config files. 
 +54 packages you are using are looking for funding. 
 +Use the `composer fund` command to find out more! 
 +Cleaning vendor directory. 
 +</code> 
 + 
 +うまくいってるようだ。サイトに戻り、upgarde_statusモジュールをチェックし有効化する。お、今度は成功(怒られない)したようだ。もージュールの説明文をクリックすると開くので、そこの「構成」をクリック 
 + 
 +{{:cms:drupal:upgrade9:d9-1.png?direct&500|}}\\ 
 +{{:cms:drupal:upgrade9:d9-2.png?direct&500|}} 
 + 
 +  * さくらのコントロールパネルで調べると、「Apache/2.4.51」と出てるから大丈夫だよね? 
 +  * 8.9.20にあげなくてもいいいよね? 
 +  * Drush? 
 + 
 +<code sh> 
 +$ drush status 
 + [warning] Drush command terminated abnormally. 
 +$ drush --version 
 +Drush Commandline Tool 10.3.2-dev 
 +</code> 
 + 
 +====Upgrade作業に入る ===== 
 + 
 +[[upgradework]] 
 + 
 +[[upgradework2]]
  
  
cms/drupal/upgrade9/start.1641434949.txt.gz · 最終更新: 2022/01/06 11:09 by king