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 Bacsai91e1eb7664be
diff --git a/app/Models/Application.php b/app/Models/Application.php
index 1cdfdea295..b08561ef76 100644
--- a/app/Models/Application.php
+++ b/app/Models/Application.php
@@ -212,13 +212,9 @@ class Application extends BaseModel
{
if (data_get($this, 'private_key_id')) {
return 'deploy_key';
- }
- if (data_get($this, 'source')) {
+ } else if (data_get($this, 'source')) {
return 'source';
}
- if (data_get($this, 'private_key_id')) {
- return 'deploy_key';
- }
throw new \Exception('No deployment type found');
}
public function could_set_build_commands(): bool