mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 10:51:36 +00:00
- refactoring architecture - fix incomplete ssh logs - code editor for scripts in the app - remove Jobs and SSHCommands
17 lines
258 B
PHP
17 lines
258 B
PHP
<?php
|
|
|
|
namespace App\Actions\Site;
|
|
|
|
use App\Models\Site;
|
|
|
|
class UpdateEnv
|
|
{
|
|
public function update(Site $site, array $input): void
|
|
{
|
|
$site->server->os()->editFile(
|
|
$site->path.'/.env',
|
|
$input['env']
|
|
);
|
|
}
|
|
}
|