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.

redirect if no deployment found

Andras Bacsai22028e23e3d7
diff --git a/app/Http/Controllers/ApplicationController.php b/app/Http/Controllers/ApplicationController.php
index 877ca32544..f477549dbc 100644
--- a/app/Http/Controllers/ApplicationController.php
+++ b/app/Http/Controllers/ApplicationController.php
@@ -57,7 +57,13 @@ class ApplicationController extends Controller
return redirect()->route('dashboard');
}
$activity = Activity::where('properties->type_uuid', '=', $deployment_uuid)->first();
-
+ if (!$activity) {
+ return redirect()->route('project.application.deployments', [
+ 'project_uuid' => $project->uuid,
+ 'environment_name' => $environment->name,
+ 'application_uuid' => $application->uuid,
+ ]);
+ }
return view('project.application.deployment', [
'application' => $application,
'activity' => $activity,