Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix

Andras Bacsai114647810bbc
diff --git a/app/Actions/Proxy/CheckProxySettingsInSync.php b/app/Actions/Proxy/CheckProxySettingsInSync.php
index 410ebcfbaa..0ffbff74b3 100644
--- a/app/Actions/Proxy/CheckProxySettingsInSync.php
+++ b/app/Actions/Proxy/CheckProxySettingsInSync.php
@@ -15,9 +15,9 @@ class CheckProxySettingsInSync
"cat $proxy_path/docker-compose.yml",
], $server, false);
if (is_null($output)) {
- $final_output = Str::of(getProxyConfiguration($server))->trim();
+ $final_output = Str::of(getProxyConfiguration($server))->trim()->value;
} else {
- $final_output = Str::of($output)->trim();
+ $final_output = Str::of($output)->trim()->value;
}
$docker_compose_yml_base64 = base64_encode($final_output);
$server->extra_attributes->last_saved_proxy_settings = Str::of($docker_compose_yml_base64)->pipe('md5')->value;
diff --git a/app/Actions/Proxy/InstallProxy.php b/app/Actions/Proxy/InstallProxy.php
index 0788fa7659..090a849907 100644
--- a/app/Actions/Proxy/InstallProxy.php
+++ b/app/Actions/Proxy/InstallProxy.php
@@ -3,9 +3,7 @@
namespace App\Actions\Proxy;
use App\Enums\ActivityTypes;
-use App\Enums\ProxyTypes;
use App\Models\Server;
-use Illuminate\Support\Collection;
use Spatie\Activitylog\Models\Activity;
use Illuminate\Support\Str;
@@ -30,9 +28,9 @@ class InstallProxy
"cat $proxy_path/docker-compose.yml",
], $server, false);
if (is_null($configuration)) {
- $configuration = Str::of(getProxyConfiguration($server))->trim();
+ $configuration = Str::of(getProxyConfiguration($server))->trim()->value;
} else {
- $configuration = Str::of($configuration)->trim();
+ $configuration = Str::of($configuration)->trim()->value;
}
$docker_compose_yml_base64 = base64_encode($configuration);
$server->extra_attributes->last_applied_proxy_settings = Str::of($docker_compose_yml_base64)->pipe('md5')->value;
diff --git a/app/Http/Livewire/Server/Proxy.php b/app/Http/Livewire/Server/Proxy.php
index 2cfae33dc3..94b331495b 100644
--- a/app/Http/Livewire/Server/Proxy.php
+++ b/app/Http/Livewire/Server/Proxy.php
@@ -51,7 +51,7 @@ class Proxy extends Component
{
try {
$proxy_path = config('coolify.proxy_config_path');
- $this->proxy_settings = Str::of($this->proxy_settings)->trim();
+ $this->proxy_settings = Str::of($this->proxy_settings)->trim()->value;
$docker_compose_yml_base64 = base64_encode($this->proxy_settings);
$this->server->extra_attributes->last_saved_proxy_settings = Str::of($docker_compose_yml_base64)->pipe('md5')->value;
$this->server->save();
diff --git a/bootstrap/helpers.php b/bootstrap/helpers.php
index 1040bac8ca..9a304dd697 100644
--- a/bootstrap/helpers.php
+++ b/bootstrap/helpers.php
@@ -159,6 +159,7 @@ if (!function_exists('instantRemoteProcess')) {
{
$command_string = implode("\n", $command);
$private_key_location = savePrivateKeyForServer($server);
+
$ssh_command = generateSshCommand($private_key_location, $server->ip, $server->user, $server->port, $command_string);
$process = Process::run($ssh_command);
$output = trim($process->output());
diff --git a/resources/css/app.css b/resources/css/app.css
index 4e1e629040..34b619def5 100644
--- a/resources/css/app.css
+++ b/resources/css/app.css
@@ -46,5 +46,5 @@ h3 {
@apply text-lg font-bold py-4;
}
.box {
- @apply flex items-center justify-center text-sm rounded cursor-pointer h-14 bg-coolgray-200 hover:bg-coollabs p-2;
+ @apply flex items-center justify-center text-sm rounded cursor-pointer h-14 bg-coolgray-200 hover:bg-coollabs-100 p-2;
}
diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php
index 26071c61ae..ac0fdf4958 100644
--- a/resources/views/dashboard.blade.php
+++ b/resources/views/dashboard.blade.php
@@ -1,9 +1,8 @@
<x-layout>
@if ($servers->count() === 0)
<div class="flex flex-col items-center justify-center h-full pt-32">
- <div class="pb-3">Without a server, you won't be able to do much.</div>
- <div class="text-2xl">Let's create <a href="{{ route('server.new') }}"
- class="p-2 rounded bg-coollabs hover:bg-coollabs-100">your
+ <div class="">Without a server, you won't be able to do much</div>
+ <div class="text-2xl">Let's create <a class="underline" href="{{ route('server.new') }}">your
first</a> one!</div>
</div>
@else
diff --git a/resources/views/livewire/private-key/create.blade.php b/resources/views/livewire/private-key/create.blade.php
index 204754062f..233c24100e 100644
--- a/resources/views/livewire/private-key/create.blade.php
+++ b/resources/views/livewire/private-key/create.blade.php
@@ -3,8 +3,8 @@
<x-inputs.input id="name" label="Name" required />
<x-inputs.input id="description" label="Description" />
<x-inputs.input type="textarea" id="value" label="Private Key" required />
- <x-inputs.button type="submit" wire.click.prevent>
- Save Private Key
+ <x-inputs.button isBold type="submit" wire.click.prevent>
+ Save
</x-inputs.button>
</form>
</div>
diff --git a/resources/views/livewire/server/new/by-ip.blade.php b/resources/views/livewire/server/new/by-ip.blade.php
index 72f66bc712..c3f2ddf339 100644
--- a/resources/views/livewire/server/new/by-ip.blade.php
+++ b/resources/views/livewire/server/new/by-ip.blade.php
@@ -16,8 +16,7 @@
<h1>Select a private key</h1>
<div class="flex">
@foreach ($private_keys as $key)
- <div class="w-32 box" :class="{ 'bg-coollabs': {{ $private_key_id == $key->id }} }"
- wire:click.defer.prevent="setPrivateKey('{{ $key->id }}')">
+ <div class="w-32 box" wire:click.defer.prevent="setPrivateKey('{{ $key->id }}')">
{{ $key->name }}
</div>
@endforeach