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: sentry

Andras Bacsai26073b82fd2f
diff --git a/app/Models/ServiceApplication.php b/app/Models/ServiceApplication.php
index 820ef6feed..256f6a106c 100644
--- a/app/Models/ServiceApplication.php
+++ b/app/Models/ServiceApplication.php
@@ -40,6 +40,9 @@ class ServiceApplication extends BaseModel
{
return 'service';
}
+ public function workdir() {
+ return service_configuration_dir() . "/{$this->service->uuid}";
+ }
public function serviceType()
{
$found = str(collect(SPECIFIC_SERVICES)->filter(function ($service) {
diff --git a/app/Models/ServiceDatabase.php b/app/Models/ServiceDatabase.php
index 76c174d08c..710bab1fff 100644
--- a/app/Models/ServiceDatabase.php
+++ b/app/Models/ServiceDatabase.php
@@ -59,6 +59,9 @@ class ServiceDatabase extends BaseModel
}
return "{$realIp}:{$port}";
}
+ public function workdir() {
+ return service_configuration_dir() . "/{$this->service->uuid}";
+ }
public function service()
{
return $this->belongsTo(Service::class);