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

Andras Bacsai99d07981cfda
diff --git a/routes/webhooks.php b/routes/webhooks.php
index 9f6d60c0a5..ba4c5b1b59 100644
--- a/routes/webhooks.php
+++ b/routes/webhooks.php
@@ -204,7 +204,12 @@ Route::post('/source/gitlab/events/manual', function () {
$container_name = generateApplicationContainerName($application, $pull_request_id);
// ray('Stopping container: ' . $container_name);
instant_remote_process(["docker rm -f $container_name"], $application->destination->server);
- return response('Preview Deployment closed.');
+ $return_payloads->push([
+ 'application' => $application->name,
+ 'status' => 'success',
+ 'message' => 'Preview Deployment closed',
+ ]);
+ return response($return_payloads);
}
$return_payloads->push([
'application' => $application->name,