2016-11-19 15:13:32 +07:00
|
|
|
<?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 () {
|
2017-06-05 12:53:01 +07:00
|
|
|
if (!commandExist('unzip')) {
|
|
|
|
writeln('<comment>To speed up composer installation setup "unzip" command with PHP zip extension https://goo.gl/sxzFcD</comment>');
|
|
|
|
}
|
2018-02-08 11:42:52 +07:00
|
|
|
run('cd {{release_path}} && {{bin/composer}} {{composer_options}}');
|
2016-11-19 15:13:32 +07:00
|
|
|
});
|