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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: redis custom conf
Andras Bacsai964ded1d0bbc
diff --git a/app/Actions/Database/StartRedis.php b/app/Actions/Database/StartRedis.phpindex 44d1c5ae5f..dc17636a78 100644--- a/app/Actions/Database/StartRedis.php+++ b/app/Actions/Database/StartRedis.php@@ -3,6 +3,7 @@namespace App\Actions\Database;use App\Models\StandaloneRedis;+use Illuminate\Support\Facades\Storage;use Illuminate\Support\Str;use Symfony\Component\Yaml\Yaml;use Lorisleiva\Actions\Concerns\AsAction;@@ -106,7 +107,7 @@ class StartRedis'target' => '/usr/local/etc/redis/redis.conf','read_only' => true,];- $docker_compose['services'][$container_name]['command'] = $startCommand . ' /usr/local/etc/redis/redis.conf';+ $docker_compose['services'][$container_name]['command'] = "redis-server /usr/local/etc/redis/redis.conf --requirepass {$this->database->redis_password} --appendonly yes";}$docker_compose = Yaml::dump($docker_compose, 10);$docker_compose_base64 = base64_encode($docker_compose);@@ -165,8 +166,9 @@ class StartRedisreturn;}$filename = 'redis.conf';- $content = $this->database->redis_conf;- $content_base64 = base64_encode($content);- $this->commands[] = "echo '{$content_base64}' | base64 -d > $this->configuration_dir/{$filename}";+ Storage::disk('local')->put("tmp/redis.conf_{$this->database->uuid}", $this->database->redis_conf);+ $path = Storage::path("tmp/redis.conf_{$this->database->uuid}");+ instant_scp($path, "{$this->configuration_dir}/{$filename}", $this->database->destination->server);+ Storage::disk('local')->delete("tmp/redis.conf_{$this->database->uuid}");}}diff --git a/app/Livewire/Project/Shared/ExecuteContainerCommand.php b/app/Livewire/Project/Shared/ExecuteContainerCommand.phpindex 1ffcd810b7..e3d48cb2b3 100644--- a/app/Livewire/Project/Shared/ExecuteContainerCommand.php+++ b/app/Livewire/Project/Shared/ExecuteContainerCommand.php@@ -79,7 +79,7 @@ class ExecuteContainerCommand extends Component$this->resource = $resource;$this->server = $this->resource->destination->server;$this->container = $this->resource->uuid;- if (str(data_get($this,'resource.status'))->startsWith('running')) {+ if (!str(data_get($this,'resource.status'))->startsWith('exited')) {$this->containers->push($this->container);}} else if (data_get($this->parameters, 'service_uuid')) {diff --git a/config/sentry.php b/config/sentry.phpindex ccae430a3c..f6b3ee9be3 100644--- a/config/sentry.php+++ b/config/sentry.php@@ -7,7 +7,7 @@ return [// The release version of your application// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))- 'release' => '4.0.0-beta.198',+ 'release' => '4.0.0-beta.199',// When left empty or `null` the Laravel environment will be used'environment' => config('app.env'),diff --git a/config/version.php b/config/version.phpindex e5829a919d..0eb21d0dd6 100644--- a/config/version.php+++ b/config/version.php@@ -1,3 +1,3 @@<?php-return '4.0.0-beta.198';+return '4.0.0-beta.199';diff --git a/versions.json b/versions.jsonindex 56118ef57b..903676425d 100644--- a/versions.json+++ b/versions.json@@ -4,7 +4,7 @@"version": "3.12.36"},"v4": {- "version": "4.0.0-beta.198"+ "version": "4.0.0-beta.199"}}}