Drupal/upgrade: Difference between revisions

Add module inventory
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
(6 intermediate revisions by the same user not shown)
Line 8: Line 8:
You need to upgrade Drupal like you brush your teeth... at least once or twice a day.
You need to upgrade Drupal like you brush your teeth... at least once or twice a day.


<source lang="bash">
<syntaxhighlight lang="bash">
cd /var/www/equality-tech.com/www/drupal
cd /var/www/equality-tech.com/www/drupal
drush vset maintenance_mode 1
drush vset maintenance_mode 1
Line 17: Line 17:
mv .htaccess.mine .htaccess
mv .htaccess.mine .htaccess
drush vset maintenance_mode 0
drush vset maintenance_mode 0
</source>
</syntaxhighlight>


==Upgrading from Drupal 7 to Drupal 8==
==Upgrading from Drupal 7 to Drupal 8==
Read
* https://www.drupal.org/docs/upgrading-drupal/preparing-a-site-for-upgrade-to-drupal-8
* https://www.jeffgeerling.com/blog/2020/migrating-jeffgeerlingcom-drupal-7-drupal-8-how-video-series
* https://raw.githubusercontent.com/geerlingguy/drupal-for-kubernetes/master/docker-compose.yml
* https://github.com/geerlingguy/jeffgeerling-com
<syntaxhighlight lang="bash">
# Start a new Drupal Project
# Use composer to create a new Drupal project based on the 'recommended-project' project.
composer create-project drupal/recommended-project:^8 /var/www/equality-tech.com
# Add .gitignore and README.md
apt install -y php git etckeeper unzip php-dom php-gd php-mbstring
# visit getcomposer.org and get composer
mv composer.phar /usr/local/bin/composer
# require Drush
composer require drush/drush
composer require drupal/migrate_upgrade:^3
# setup stanza for old site in settings.php
vim /var/www/equality-tech.com/web/sites/default/default.settings.php
# setup SSH tunnel to the old server
ssh -L 127.0.0.1:33306:127.0.0.1:3306 root@equality-tech.com
</syntaxhighlight>
See
* https://www.lullabot.com/articles/overview-migrating-drupal-sites-8
* https://www.youtube.com/watch?v=PMFSv5B4Z20 Jeff Geerling's video series
* https://www.drupal.org/docs/upgrading-drupal/known-issues-when-upgrading-from-drupal-6-or-7-to-drupal-8
===Module inventory===
===Module inventory===
<br />
<br />
Line 663: Line 695:
|7.x-5.6
|7.x-5.6
|}
|}
[[Category:CMS]]
[[Category:CMS]]
[[Category:Drupal]]
[[Category:Drupal]]
[[Category:Kubernetes]]