Skip to content

Commit

Permalink
fix(core): update application_id references to resourable_id and reso…
Browse files Browse the repository at this point in the history
…urable_type for Nixpacks configuration
  • Loading branch information
andrasbacsai committed Jan 22, 2025
1 parent c9869e1 commit fda1fdc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Jobs/ApplicationDeploymentJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -1122,15 +1122,17 @@ private function laravel_finetunes()
$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) {
$nixpacks_php_root_dir = new EnvironmentVariable;
$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();
}

Expand Down

0 comments on commit fda1fdc

Please sign in to comment.