This is a helper tool for fetch content from TYPO3 Flow / Neos installation on a remote server to your local computer running with docker.
# Dependency
## Dependency
This is requires that your TYPO3 Flow / Neos installation is configured to run with `dockerflow` package. See https://github.com/Sebobo/Shel.DockerFlow
# Installation
## Installation
Add the `syncontent` package into your `composer.json` file and update `composer.lock`. It is recommended to add in the `require-dev` section of your composer.
...
...
@@ -14,7 +14,7 @@ Add the `syncontent` package into your `composer.json` file and update `composer
"visay/syncontent": "dev-master"
```
# Usage
## Usage
In the root directory of your project, execute:
...
...
@@ -27,12 +27,22 @@ bin/syncontent latest-014-073
- Only `latest` or `demo` is supported at the moment. We don't recommend you to have autologin access to the live site
- You can only run the command from the root directory of your project
## Customization
### Customization
If you are lazy typing the user again and again, you can define it by creating a file at `Configuration/.syncontent` with the user as the only content inside
If you are lazy typing the user again and again, you can define it by creating a file in `Packages/Libraries/visay/syncontent/config/master` with the name as user of the server you want to use.
```Configuration/.syncontent
latest-014-073
```
Packages
└── Libraries
└── visay
└── syncontent
├── ansible
├── bin
├── composer.json
├── config
│ └── master
│ └── latest-014-073
└── README.md
```
With this file, you can now execute the content sync with just:
...
...
@@ -41,8 +51,12 @@ With this file, you can now execute the content sync with just:
bin/syncontent
```
# Author
And the script will automatically take `latest-014-073` as the content master.
- There should be only one master at a time. That means you should not have more than more file in the `config/master` directory. In case there are more than one file exists, the script will take first file only to process.
## Author
Visay Keo <visay@web-essentials.asia>
If you have any feedback, comments and/or questions, feel free to contact with email address above. And of course, a merge request is always welcome.
\ No newline at end of file
If you have any feedback, comments and/or questions, feel free to contact with email address above. And of course, a merge request is always welcomed.