mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 07:22:34 +00:00
Plugins base (#613)
* wip * wip * cleanup * notification channels * phpstan * services * remove server types * refactoring * refactoring
This commit is contained in:
@ -6,57 +6,29 @@
|
||||
|
||||
class Laravel extends PHPSite
|
||||
{
|
||||
public static function id(): string
|
||||
{
|
||||
return 'laravel';
|
||||
}
|
||||
|
||||
public static function make(): self
|
||||
{
|
||||
return new self(new Site(['type' => \App\Enums\SiteType::LARAVEL]));
|
||||
return new self(new Site(['type' => self::id()]));
|
||||
}
|
||||
|
||||
public function baseCommands(): array
|
||||
{
|
||||
return array_merge(parent::baseCommands(), [
|
||||
// Initial Setup Commands
|
||||
[
|
||||
'name' => 'Generate Application Key',
|
||||
'command' => 'php artisan key:generate',
|
||||
],
|
||||
[
|
||||
'name' => 'Create Storage Symbolic Link',
|
||||
'command' => 'php artisan storage:link',
|
||||
],
|
||||
// Database Commands
|
||||
[
|
||||
'name' => 'Run Database Migrations',
|
||||
'command' => 'php artisan migrate --force',
|
||||
],
|
||||
// Cache & Optimization Commands
|
||||
[
|
||||
'name' => 'Optimize Application',
|
||||
'command' => 'php artisan optimize',
|
||||
],
|
||||
[
|
||||
'name' => 'Clear All Application Optimizations',
|
||||
'command' => 'php artisan optimize:clear',
|
||||
],
|
||||
[
|
||||
'name' => 'Clear Application Cache Only',
|
||||
'name' => 'cache:clear',
|
||||
'command' => 'php artisan cache:clear',
|
||||
],
|
||||
// Worker Commands
|
||||
[
|
||||
'name' => 'Restart Workers',
|
||||
'command' => 'php artisan queue:restart',
|
||||
],
|
||||
[
|
||||
'name' => 'Clear All Failed Queue Jobs',
|
||||
'command' => 'php artisan queue:flush',
|
||||
],
|
||||
// Application State Commands
|
||||
[
|
||||
'name' => 'Put Application in Maintenance Mode',
|
||||
'name' => 'down',
|
||||
'command' => 'php artisan down --retry=5 --refresh=6 --quiet',
|
||||
],
|
||||
[
|
||||
'name' => 'Bring Application Online',
|
||||
'name' => 'up',
|
||||
'command' => 'php artisan up',
|
||||
],
|
||||
]);
|
||||
|
Reference in New Issue
Block a user