händisch eingeben müssen. Ich möchte lokal beim Entwickeln echte Daten sehen. Ich möchte Features auf Staging mit echten Daten sehen. Ich möchte die Daten auf Staging sehen, bevor sie auf Production gehen. Ich möchte die Production-Daten auf mehreren Systemen parallel eingeben. Ich möchte 1x-Testumgebungen mit echten Daten aufsetzen.
soll mit 1 Kommando ausführbar sein. Wir müssen die DSGVO einhalten. Auf Production dürfen keine Development- Dependencies liegen. Die Berechtigungen müssen persönlich sein können. Auf Production sollen keine möglichst wenig Credentials liegen.
Copies the DB and assets from the production system to the local system. ## Usage: db-pull ## Example: "ddev db-pull" echo "Copying the uploaded files from the production system …" php tools/deployer.phar typo3:fileadmin:clone echo "Dumping and copying the database from the production system …" mkdir -p var/tmp php tools/deployer.phar typo3:database:dump typo3 database:import < var/tmp/deployer-db-dump.sql rm var/tmp/deployer-db-dump.sql echo "Updating the DB schema …" typo3 database:updateschema echo "Updating the local reference index …" typo3 referenceindex:update
linefeed DB_PACKAGE_ROOT="${CURRENT_DIRECTORY}/../" LOCAL_PROJECT_ROOT="${DB_PACKAGE_ROOT}../../../" LOCAL_FILEADMIN="${LOCAL_PROJECT_ROOT}public/fileadmin/" echo 'Copying the media files to the production system …' rsync -avz -e ssh --delete "${LOCAL_FILEADMIN}" "????@???:/???/shared/public/fileadmin/"
$locationOnServer = '/tmp/deployer-db-dump.sql'; upload('var/tmp/deployer-db-dump.sql', $locationOnServer); $importCommand = '{{bin/php}} {{deploy_path}}/current/vendor/bin/typo3 database:import < ' . $locationOnServer; run($importCommand); run('rm ' . $locationOnServer); })->desc('Pushes the existing DB dump from local var/tmp/ to the remote machine and imports it there');
the local media and DB to the live system. ## Usage: db-push ## Example: "ddev db-push" echo "Pushing the media assets to the production system …" vendor/bin/typo3 install:fixfolderstructure vendor/bin/push-media echo "Done." echo echo "Dumping and copying the database to the production system …" .ddev/commands/web/db-dump php tools/deployer.phar typo3:database:push rm var/tmp/deployer-db-dump.sql echo "Done."