Cleanup tasks
Cleanup git repository
Before Cherry-picking a patch or starting a new patch:
Build/Scripts/runTests.sh -s clean && \
git fetch --all && \
git reset --hard origin/main && \
git pull --rebase
Cleanup TYPO3 installation
After downloading a new patch or making changes to an existing patch, you may need to cleanup your TYPO3 installation.
It depends on the files that have changed, what you need to execute. In any case or if in doubt, you can safely perform all steps.
ddev typo3 cache:flush && \
ddev typo3 cache:warmup
Build/Scripts/runTests.sh -s composerInstall
Changes in .css / .js files:
Delete browser cache or hard refresh (e.g. CTRL + F5)
Also you may need to create the JS/CSS assets:
./Build/Scripts/runTests.sh -s buildCss && \
./Build/Scripts/runTests.sh -s buildJavascript
Changes in DB schema (ext_tables.sql):
ddev typo3 extension:setup
Maintenance: Analyze Database Structure, Apply selected changes.
Update core-testing docker images
./Build/Scripts/runTests.sh -u
One-liner command
If you want to reset your local installation in one go, you could use the following one-liner command, combining the mentioned parts from above:
./Build/Scripts/runTests.sh -u && \
Build/Scripts/runTests.sh -s clean && \
git fetch --all && \
git reset --hard origin/main && \
git pull --rebase && \
./Build/Scripts/runTests.sh -s composerInstall && \
ddev typo3 cache:flush && \
ddev typo3 cache:warmup && \
ddev typo3 extension:setup
Note
You may still check the Database Analyzer
in the backend for changes or
removed columns and tables to ensure a clean state.