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.

resolve merge conflict

Andras Bacsaiacfee7d9f3a6
diff --git a/app/Livewire/Project/Application/General.php b/app/Livewire/Project/Application/General.php
index 7d3d64beeb..16733a298d 100644
--- a/app/Livewire/Project/Application/General.php
+++ b/app/Livewire/Project/Application/General.php
@@ -622,6 +622,7 @@ class General extends Component
public function updatedBuildPack()
{
+ $originalBuildPack = $this->application->getOriginal('build_pack');
// Check if user has permission to update
try {
$this->authorize('update', $this->application);
diff --git a/app/Models/Application.php b/app/Models/Application.php
index c2ba6e7735..306c9bd7a2 100644
--- a/app/Models/Application.php
+++ b/app/Models/Application.php
@@ -188,16 +188,13 @@ class Application extends BaseModel
// Remove SERVICE_FQDN_* and SERVICE_URL_* environment variables
$application->environment_variables()
- ->where(function ($q) {
- $q->where('key', 'LIKE', 'SERVICE_FQDN_%')
- ->orWhere('key', 'LIKE', 'SERVICE_URL_%');
- })
+ ->where('key', 'LIKE', 'SERVICE_FQDN_%')
+ ->orWhere('key', 'LIKE', 'SERVICE_URL_%')
->delete();
+
$application->environment_variables_preview()
- ->where(function ($q) {
- $q->where('key', 'LIKE', 'SERVICE_FQDN_%')
- ->orWhere('key', 'LIKE', 'SERVICE_URL_%');
- })
+ ->where('key', 'LIKE', 'SERVICE_FQDN_%')
+ ->orWhere('key', 'LIKE', 'SERVICE_URL_%')
->delete();
}