deployer/recipe/deploy/vendors.php
Anton Medvedev 7c1b8567cd
Revert "Missing {{bin/php}} in deploy:vendors" (#1537)
* Revert "create objects only when necessary (#1528)"

This reverts commit 0fc63021061f3265ccae203f549e958120ab968a.

* Revert "fixed typo (#1520)"

This reverts commit 971843db5d1ec706f6a8685108ad56f24dc9253f.

* Revert "throw meaningfull exception on errors in cd() (#1519)"

This reverts commit b139933b24e0f6c419e869a72e69e85955517b7f.

* Revert "Missing {{bin/php}} in deploy:vendors (#1521)"

This reverts commit 6dae113be8277bedb1e74658dfbf71e0712dd578.
2018-02-08 11:42:52 +07:00

17 lines
522 B
PHP

<?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer;
desc('Installing vendors');
task('deploy:vendors', function () {
if (!commandExist('unzip')) {
writeln('<comment>To speed up composer installation setup "unzip" command with PHP zip extension https://goo.gl/sxzFcD</comment>');
}
run('cd {{release_path}} && {{bin/composer}} {{composer_options}}');
});