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(redis): update environment variable keys from standalone_redis_id to resourceable_id

Andras Bacsai52a38f238b14
diff --git a/app/Livewire/Project/Database/Redis/General.php b/app/Livewire/Project/Database/Redis/General.php
index 25a96b2926..05babeaec7 100644
--- a/app/Livewire/Project/Database/Redis/General.php
+++ b/app/Livewire/Project/Database/Redis/General.php
@@ -88,12 +88,12 @@ class General extends Component
if (version_compare($this->redis_version, '6.0', '>=')) {
$this->database->runtime_environment_variables()->updateOrCreate(
['key' => 'REDIS_USERNAME'],
- ['value' => $this->redis_username, 'standalone_redis_id' => $this->database->id]
+ ['value' => $this->redis_username, 'resourceable_id' => $this->database->id]
);
}
$this->database->runtime_environment_variables()->updateOrCreate(
['key' => 'REDIS_PASSWORD'],
- ['value' => $this->redis_password, 'standalone_redis_id' => $this->database->id]
+ ['value' => $this->redis_password, 'resourceable_id' => $this->database->id]
);
$this->database->save();