mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
- refactoring architecture - fix incomplete ssh logs - code editor for scripts in the app - remove Jobs and SSHCommands
23 lines
402 B
PHP
23 lines
402 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,
|
|
]),
|
|
'composer-install',
|
|
$site->id
|
|
);
|
|
}
|
|
}
|