mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 14:36:17 +00:00
- 2.x - sites (wip)
- improved ssh error handling - database soft deletes
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
use App\Exceptions\SourceControlIsNotConnected;
|
||||
use App\SSH\Composer\Composer;
|
||||
use App\SSH\Git\Git;
|
||||
use App\SSH\Services\Webserver\Webserver;
|
||||
use Illuminate\Validation\Rule;
|
||||
|
||||
class PHPSite extends AbstractSiteType
|
||||
@ -36,12 +37,18 @@ public function createRules(array $input): array
|
||||
'required',
|
||||
Rule::exists('source_controls', 'id'),
|
||||
],
|
||||
'web_directory' => [
|
||||
'nullable',
|
||||
],
|
||||
'repository' => [
|
||||
'required',
|
||||
],
|
||||
'branch' => [
|
||||
'required',
|
||||
],
|
||||
'composer' => [
|
||||
'nullable',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
@ -53,6 +60,7 @@ public function createFields(array $input): array
|
||||
'repository' => $input['repository'] ?? '',
|
||||
'branch' => $input['branch'] ?? '',
|
||||
'php_version' => $input['php_version'] ?? '',
|
||||
'composer' => $input['php_version'] ?? '',
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user