This script solves some of our deployment problems. As we use Git as version control system it is totally based on that.
For several reasons we decide NOT to use Submodules. So what we do is splitting our projects in
- main repository
- small modules
The main repository stors all project specific parts and ignores the smaller modules. The small modules are typically used in other projects too or could be used in the future or are developed separately.
- copy that module to your projectroot
- add a environment.txt to your project
- add a marmdeployment.conf.php to your project you will find an example in the module.
- Make sure you use Git!
- you need shell access
- your server must allow php system() commands!