mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
use blade as conmmands template (#444)
* use blade as conmmands template * fix lint * fix ssl
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
use App\Enums\PHPIniType;
|
||||
use App\Models\Server;
|
||||
use App\Models\Service;
|
||||
use App\Web\Pages\Servers\Logs\Index;
|
||||
use Exception;
|
||||
use Filament\Forms\Components\Hidden;
|
||||
use Filament\Forms\Components\Select;
|
||||
@ -102,6 +103,16 @@ private function installExtensionAction(): Action
|
||||
|
||||
try {
|
||||
app(InstallPHPExtension::class)->install($this->server, $data);
|
||||
|
||||
Notification::make()
|
||||
->success()
|
||||
->title('PHP Extension is being installed!')
|
||||
->body('You can check the logs for more information.')
|
||||
->actions([
|
||||
\Filament\Notifications\Actions\Action::make('View Logs')
|
||||
->url(Index::getUrl(parameters: ['server' => $this->server->id])),
|
||||
])
|
||||
->send();
|
||||
} catch (Exception $e) {
|
||||
Notification::make()
|
||||
->danger()
|
||||
|
@ -74,7 +74,7 @@ private function vhostAction(): Action
|
||||
run_action($this, function () use ($data) {
|
||||
/** @var Webserver $handler */
|
||||
$handler = $this->server->webserver()->handler();
|
||||
$handler->updateVHost($this->site, false, $data['vhost']);
|
||||
$handler->updateVHost($this->site, $data['vhost']);
|
||||
Notification::make()
|
||||
->success()
|
||||
->title('VHost updated!')
|
||||
|
Reference in New Issue
Block a user