Download the PHP package sourcebroker/deployer-typo3-media without Composer
On this page you can find all versions of the php package sourcebroker/deployer-typo3-media. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sourcebroker/deployer-typo3-media
More information about sourcebroker/deployer-typo3-media
Files in sourcebroker/deployer-typo3-media
Package deployer-typo3-media
Short Description Media sync for TYPO3 with deployer-extended-media.
License MIT
Informations about the package deployer-typo3-media
deployer-typo3-media
What does it do?
This package allows to sync media between instances using host data stored in deployer configuration.
It allows to copy files to your local instance, copy files between instances, but also symlink files instead of copy to save disk space (if the staging instance is at the same server as production).
This package only extends sourcebroker/deployer-extended-media with settings specific for TYPO3 CMS.
Installation
-
Install package with composer:
-
Put the following lines at the beginning of your
deploy.php: -
Create a
.envfile (or.env.local) in your project root. The.env(or.env.local) file should be out of git because you need to store there information about instance name in varINSTANCE. TheINSTANCEvalue must correspond tohost()name.For the following real, example configuration:
you would need to create file
.env(or.env.local) with the following content:INSTANCE=productionat host defined byhost('production')INSTANCE=stagingat host defined byhost('staging')INSTANCE=localat your local environment (laptop)
As an alternative you can also not create any env file but make sure that the env variable INSTANCE exists in the system at hosts defined in deployer (and also at your local host).
TYPO3 sync media
TYPO3 sync folder is fileadmin with exclusion of _processed_ folder.
Synchronizing media
The commands for synchronizing media for the example configuration above would be:
-
For syncing media from production to local instance (usually your laptop):
-
For syncing media from production to staging instance:
-
For syncing media from production to staging, creating symlinks to each file in the shared folder if both instances are at the same server (saves disk space):
-
For syncing media from local to staging (use with care - generally not recommended):
- For syncing media from local to production (use with care! - generally strongly not recommended):
For more options and ways to extend the sync process, visit sourcebroker/deployer-extended-media.
Changelog
See CHANGELOG.rst