From e604abf47a970e354f66e0e918667d21813abd3f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 27 Mar 2023 09:35:34 +0200 Subject: [PATCH] remove unnecessary things from demo --- app/Actions/RemoteProcess/DispatchRemoteProcess.php | 2 +- app/Actions/RemoteProcess/RunRemoteProcess.php | 1 + resources/views/livewire/run-command.blade.php | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Actions/RemoteProcess/DispatchRemoteProcess.php b/app/Actions/RemoteProcess/DispatchRemoteProcess.php index 9c7cb20b2..349c847c4 100644 --- a/app/Actions/RemoteProcess/DispatchRemoteProcess.php +++ b/app/Actions/RemoteProcess/DispatchRemoteProcess.php @@ -13,7 +13,7 @@ class DispatchRemoteProcess public function __construct(RemoteProcessArgs $remoteProcessArgs){ $this->activity = activity() ->withProperties($remoteProcessArgs->toArray()) - ->log("Awaiting command to start...\n\n"); + ->log(""); } public function __invoke(): Activity diff --git a/app/Actions/RemoteProcess/RunRemoteProcess.php b/app/Actions/RemoteProcess/RunRemoteProcess.php index 4a6352041..731eea533 100644 --- a/app/Actions/RemoteProcess/RunRemoteProcess.php +++ b/app/Actions/RemoteProcess/RunRemoteProcess.php @@ -75,6 +75,7 @@ protected function getCommand(): string . '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null ' . '-o PasswordAuthentication=no ' . '-o RequestTTY=no ' + . "-o LogLevel=ERROR " . "-p {$port} " . "{$user}@{$destination} " . " 'bash -se' << \\$delimiter" . PHP_EOL diff --git a/resources/views/livewire/run-command.blade.php b/resources/views/livewire/run-command.blade.php index bac5248e3..6482fc298 100755 --- a/resources/views/livewire/run-command.blade.php +++ b/resources/views/livewire/run-command.blade.php @@ -25,9 +25,9 @@ Activity: {{ $activity?->id ?? 'waiting' }}
{{ data_get($activity, 'description') }}
-
+ {{--
Details:
{{ json_encode(data_get($activity, 'properties'), JSON_PRETTY_PRINT) }}
-
+
--}} @endisset