I have a way more complex hosts setup so I'm ignoring ->addTarget() completely. This I had to removed the hasHtaccess logic because I need this logic too so I set it manually as ->set('htaccess_filename', '.htaccess_production'). The task is just skipped if that is null so we can always add it to the task list.
I've fixed missing Contao 4.13 directories (system/tmp for example) and I've added missing Contao 5 directories. I decided to copy all of them again to this project no matter what the default contao.php recipe of Deployer says. It just feels better placed here and the array_unique() makes sure things are fine anyway.
Prepared for NC 2.0
Added support for auth.json
I've fixed the assets task to run only once and not per every host
hosts
setup so I'm ignoring->addTarget()
completely. This I had to removed thehasHtaccess
logic because I need this logic too so I set it manually as->set('htaccess_filename', '.htaccess_production')
. The task is just skipped if that isnull
so we can always add it to the task list.system/tmp
for example) and I've added missing Contao 5 directories. I decided to copy all of them again to this project no matter what the defaultcontao.php
recipe ofDeployer
says. It just feels better placed here and thearray_unique()
makes sure things are fine anyway.auth.json