mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 01:41:36 +00:00
24 lines
455 B
PHP
24 lines
455 B
PHP
<?php
|
|
|
|
namespace App\SSH\Composer;
|
|
|
|
use App\Models\Site;
|
|
use App\SSH\HasScripts;
|
|
|
|
class Composer
|
|
{
|
|
use HasScripts;
|
|
|
|
public function installDependencies(Site $site): void
|
|
{
|
|
$site->server->ssh()->exec(
|
|
$this->getScript('composer-install.sh', [
|
|
'path' => $site->path,
|
|
'php_version' => $site->php_version,
|
|
]),
|
|
'composer-install',
|
|
$site->id
|
|
);
|
|
}
|
|
}
|