Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expmigrationheal

Selbstheilung vor einem Migrationslauf: eine verwaiste Laufsperre, fehlende Migrationsordner, Dateirechte, Caches (was ein Deploy auf einer Gegenstelle korrigieren darf).

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/expmigrationheal.md

On this page

This page is a translation. Read the English original

exp:expmigrationheal

Selbstheilung vor einem Migrationslauf: eine verwaiste Laufsperre, fehlende Migrationsordner, Dateirechte, Caches (was ein Deploy auf einer Gegenstelle korrigieren darf).

Skript bin/php/expmigrationheal.php, Code in kernel/private/classes/commands/expmigrationheal.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:expmigrationheal --help
./console exp:migration:heal --help
php bin/php/expmigrationheal.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Self-healing before a migration run
The fixes a deploy may make on a remote before it runs the migrations there ([RemoteSettings] SelfHeal[]
of the source), each only when named: stale-lock (a run lock whose process is gone and that is older than
--stale-lock-age, held on this host by this user), paths (the missing migration folders), modes (the
permissions of [FileSettings] on the migration folders and var/<site>/migration, only added), caches (ini
and template-override). What cannot be fixed safely is only reported. Without --apply it lists what it
would do.

./console exp:migration:heal --fix=stale-lock,paths,modes
./console exp:migration:heal --fix=stale-lock --stale-lock-age=3600 --apply --format=json

Optionen

OptionWertHilfe
--fixerforderlichDie Korrekturen: stale-lock, paths, modes, caches (durch Kommas getrennt oder wiederholt)
--stale-lock-ageerforderlichSekunden, ab denen eine gehaltene Laufsperre, deren Prozess beendet ist, als verwaist gilt (Vorgabe 7200)
--applyDie Änderungen vornehmen (ohne die Option ein Probelauf, der sie auflistet und nichts ändert)
--dry-runDer Standard, angenommen für Skripte, die ihn übergeben: auflisten, was sich ändern würde, nichts ändern
--formaterforderlichtext (Standard) oder json (die Maschinenausgabe exp-migration/1)

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expmigrationheal.php, kernel/private/classes/commands/expmigrationheal.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x