fix(core): update application_id references to resourable_id and resourable_type for Nixpacks configuration

This commit is contained in:
Andras Bacsai
2025-01-22 14:15:42 +01:00
parent c9869e13e0
commit fda1fdc435

View File

@@ -1122,7 +1122,8 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
$nixpacks_php_fallback_path->key = 'NIXPACKS_PHP_FALLBACK_PATH'; $nixpacks_php_fallback_path->key = 'NIXPACKS_PHP_FALLBACK_PATH';
$nixpacks_php_fallback_path->value = '/index.php'; $nixpacks_php_fallback_path->value = '/index.php';
$nixpacks_php_fallback_path->is_build_time = false; $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(); $nixpacks_php_fallback_path->save();
} }
if (! $nixpacks_php_root_dir) { 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->key = 'NIXPACKS_PHP_ROOT_DIR';
$nixpacks_php_root_dir->value = '/app/public'; $nixpacks_php_root_dir->value = '/app/public';
$nixpacks_php_root_dir->is_build_time = false; $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(); $nixpacks_php_root_dir->save();
} }