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(core): update application_id references to resourable_id and resourable_type for Nixpacks configuration

Andras Bacsaifda1fdc43566
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.php
index c25325ad44..6114478da2 100644
--- a/app/Jobs/ApplicationDeploymentJob.php
+++ b/app/Jobs/ApplicationDeploymentJob.php
@@ -1122,7 +1122,8 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
$nixpacks_php_fallback_path->key = 'NIXPACKS_PHP_FALLBACK_PATH';
$nixpacks_php_fallback_path->value = '/index.php';
$nixpacks_php_fallback_path->is_build_time = false;
- $nixpacks_php_fallback_path->application_id = $this->application->id;
+ $nixpacks_php_fallback_path->resourable_id = $this->application->id;
+ $nixpacks_php_fallback_path->resourable_type = 'App\Models\Application';
$nixpacks_php_fallback_path->save();
}
if (! $nixpacks_php_root_dir) {
@@ -1130,7 +1131,8 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
$nixpacks_php_root_dir->key = 'NIXPACKS_PHP_ROOT_DIR';
$nixpacks_php_root_dir->value = '/app/public';
$nixpacks_php_root_dir->is_build_time = false;
- $nixpacks_php_root_dir->application_id = $this->application->id;
+ $nixpacks_php_root_dir->resourable_id = $this->application->id;
+ $nixpacks_php_root_dir->resourable_type = 'App\Models\Application';
$nixpacks_php_root_dir->save();
}