|
|
| Zeile 6: |
Zeile 6: |
| * DB Update $lokal <code>drush updb</code> | | * DB Update $lokal <code>drush updb</code> |
| * Synchronisieren $local <code>sync PROJETNAME</code> | | * Synchronisieren $local <code>sync PROJETNAME</code> |
|
| |
| Mögliche updates die manuell gemacht werden müssen:
| |
| <syntaxhighlight line='line' lang="bash">
| |
| composer require 'drupal/linkit:^6.0@beta'
| |
| composer require 'drupal/field_formatter_filter:^2.0'
| |
| composer require 'drupal/backup_migrate:^5.0'
| |
| composer require 'drupal/db_maintenance:^2.0'
| |
| composer require 'drupal/single_datetime:1.x-dev@dev'
| |
| composer require 'drupal/computed_field:^3.0@alpha'
| |
| composer require 'drupal/crop:^2.1'
| |
| composer require 'drupal/field_group:^3.2'
| |
| composer require 'drupal/responsive_menu:^4.4'
| |
| </syntaxhighlight>
| |
|
| |
| wenn devel nicht aktuell ist:
| |
|
| |
| zuerst kint deinstallieren
| |
| <syntaxhighlight line='line' lang="bash">
| |
| drush pm:uninstall kint
| |
| composer remove drupal/kint --no-update
| |
| composer require kint-php/kint
| |
| composer require 'drupal/devel:^4.1'
| |
| </syntaxhighlight>
| |
|
| |
| '''Nur EGW'''
| |
| <syntaxhighlight line='line' lang="bash">
| |
| composer require 'drupal/linkit:^6.0@beta' 'drupal/field_formatter_filter:^2.0' 'drupal/single_datetime:1.x-dev@dev' 'drupal/computed_field:^3.0@alpha'
| |
| composer rem drupal/date_range_picker
| |
| </syntaxhighlight>
| |
|
| |
| ==Alle==
| |
| * '''von D9/dev9''' -> "''patches''" Ordner kopieren in '''D9/Projekt'''
| |
| * '''D9/Projekt'''/composer.json
| |
| '''ersetzten'''
| |
| <syntaxhighlight line='line' lang="bash">
| |
| "conflict": {
| |
| "drupal/drupal": "*"
| |
| },
| |
| "minimum-stability": "dev",
| |
| "prefer-stable": true,
| |
| "config": {
| |
| "sort-packages": true
| |
| },
| |
| "extra": {
| |
| "enable-patching": true,
| |
| "patches-file": "patches/composer.json",
| |
| "drupal-scaffold": {
| |
| "locations": {
| |
| "web-root": "web/"
| |
| }
| |
| },
| |
| "installer-paths": {
| |
| "web/core": [
| |
| "type:drupal-core"
| |
| ],
| |
| "web/libraries/{$name}": [
| |
| "type:drupal-library"
| |
| ],
| |
| "web/modules/contrib/{$name}": [
| |
| "type:drupal-module"
| |
| ],
| |
| "web/profiles/contrib/{$name}": [
| |
| "type:drupal-profile"
| |
| ],
| |
| "web/themes/contrib/{$name}": [
| |
| "type:drupal-theme"
| |
| ],
| |
| "drush/Commands/contrib/{$name}": [
| |
| "type:drupal-drush"
| |
| ],
| |
| "web/modules/custom/{$name}": [
| |
| "type:drupal-custom-module"
| |
| ],
| |
| "web/themes/custom/{$name}": [
| |
| "type:drupal-custom-theme"
| |
| ]
| |
| },
| |
| "drupal-core-project-message": {
| |
| "include-keys": [
| |
| "homepage",
| |
| "support"
| |
| ],
| |
| "post-create-project-cmd-message": [
| |
| "<bg=blue;fg=white> </>",
| |
| "<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
| |
| "<bg=blue;fg=white> from the drupal/recommended-project template! </>",
| |
| "<bg=blue;fg=white> </>",
| |
| "",
| |
| "<bg=yellow;fg=black>Next steps</>:",
| |
| " * Install the site: https://www.drupal.org/docs/8/install",
| |
| " * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
| |
| " * Get support: https://www.drupal.org/support",
| |
| " * Get involved with the Drupal community:",
| |
| " https://www.drupal.org/getting-involved",
| |
| " * Remove the plugin that prints this message:",
| |
| " composer remove drupal/core-project-message"
| |
| ]
| |
| },
| |
| "merge-plugin": {
| |
| "include": [
| |
| "web/modules/contrib/webform/composer.libraries.json"
| |
| ]
| |
| }
| |
| }
| |
| </syntaxhighlight>
| |
|
| |
| * in '''patches/json/composer.local.json'''
| |
| <syntaxhighlight line='line' lang="bash">
| |
| "extra": {
| |
| "enable-patching": true,
| |
| "patches-file": "https://raw.githubusercontent.com/szeberli/ct_composer-patches/main/composer.patches.json",
| |
| }
| |
| </syntaxhighlight>
| |
| ** '''ODER'''
| |
| D9/Projekt:
| |
| <syntaxhighlight line='line' lang="bash">
| |
| composer config extra.enable-patching true
| |
| composer config extra.patches-file "https://raw.githubusercontent.com/szeberli/ct_composer-patches/main/composer.patches.json"
| |
| </syntaxhighlight>
| |
|
| |
| D9 Lokal nach fertiggestelltem Upgrade
| |
| <syntaxhighlight line='line' lang="bash">
| |
| patches && composer update && drush updb && drush cr
| |
| drush sql-dump > DB/DB_D9.sql
| |
| drush cex -y
| |
| git add .
| |
| git commit -m "D9 Upgrade lokal abgeschlossen"
| |
| git push origin master
| |
| </syntaxhighlight>
| |
|
| |
| Online -> Ordner löschen
| |
| * <code>web/core/vendor</code>
| |
| * <code>web/core/modules/</code>
| |
| * <code>web/themes/contrib/</code>
| |
|
| |
| ==Ausser EGW ==
| |
| ===D9 Lokal===
| |
| <code>sync projektname</code>
| |
|
| |
| ===Online===
| |
| <syntaxhighlight line='line' lang="bash">
| |
| drush updb -y
| |
| drush theme:enable gin
| |
| en -y gin_toolbar
| |
| drush cim
| |
| drush cr
| |
| drush locale:check && drush locale:update
| |
| </syntaxhighlight>
| |
|
| |
| ===Nur für EGW===
| |
| <syntaxhighlight line='line' lang="bash">
| |
| composer require 'drupal/computed_field:^3.0@alpha'
| |
| composer require 'drupal/field_formatter_filter:^2.0'
| |
| composer require 'drupal/linkit:^6.0@beta'
| |
| composer require 'drupal/single_datetime:^1.8@beta'
| |
| </syntaxhighlight>
| |
|
| |
| ===verteilen===
| |
| <syntaxhighlight line='line' lang="bash">
| |
| drush pmu -y configuration_import
| |
| </syntaxhighlight>
| |
|
| |
| Module Löschen default_config
| |
| <syntaxhighlight line='line' lang="bash">
| |
| drush pmu -y default_config
| |
| </syntaxhighlight>
| |
|
| |
| '''Nur EGW''' Module Kopieren: egw_default_config
| |
| <syntaxhighlight line='line' lang="bash">
| |
| drush en -y egw_default_config
| |
| </syntaxhighlight>
| |
|
| |
| ==alle==
| |
| <syntaxhighlight line='line' lang="bash">
| |
| zeberliedvdefaults -> Löschen
| |
| </syntaxhighlight>
| |
|
| |
| =Online=
| |
| <syntaxhighlight line='line' lang="bash">
| |
| drush pmu -y me_redirect
| |
| </syntaxhighlight>
| |
|
| |
| ==Pre resync==
| |
| <syntaxhighlight line='line' lang="bash">
| |
| $live chmod -R 755 web/modules/custom/
| |
| </syntaxhighlight>
| |