mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
25 lines
487 B
PHP
25 lines
487 B
PHP
<?php
|
|
|
|
namespace App\SSH\Composer;
|
|
|
|
use App\Exceptions\SSHError;
|
|
use App\Models\Site;
|
|
|
|
class Composer
|
|
{
|
|
/**
|
|
* @throws SSHError
|
|
*/
|
|
public function installDependencies(Site $site): void
|
|
{
|
|
$site->server->ssh($site->user)->exec(
|
|
view('ssh.composer.composer-install', [
|
|
'path' => $site->path,
|
|
'phpVersion' => $site->php_version,
|
|
]),
|
|
'composer-install',
|
|
$site->id
|
|
);
|
|
}
|
|
}
|