@hershkoy change this
set('composer', 'php -d memory_limit=-1 /usr/local/bin/composer');
set('bin/composer', 'php -d memory_limit=-1 /usr/local/bin/composer');
In Process.php line 1203: [Symfony\Component\Process\Exception\ProcessTimedOutException] The process "ssh -A -o ControlMaster=auto -o ControlPersist=60 -o ControlPathemail@example.com:2222 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no firstname.lastname@example.org 'bash -s; printf "[exit_code:%s]" $?;'" exceeded the timeout of 300 seconds.
@X-Tender for the custom file I'd try debugging this portion of the code https://github.com/deployphp/deployer/blob/master/bin/dep#L38 .. tbh I'm not sure how it works without trying to run it myself, but I don't have a project with the lastest deployer on hand, so can't test myself ..
When I run it localy on my mac it works via --file undo.php or --file "undo.php" but not in the gitlab env.
is_dir(): open_basedir restriction in effect. File(/var/www/site/releases/3/storage/logs) is not within the allowed path(s): (/var/www/site/current/:/usr/lib/php/:/tmp/)
site/currentbut you might want to add just