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.

no localhost in cloud

Andras Bacsai6f9cd6a16b23
diff --git a/app/Http/Livewire/Boarding/Index.php b/app/Http/Livewire/Boarding/Index.php
index e543af17a9..77afc1a922 100644
--- a/app/Http/Livewire/Boarding/Index.php
+++ b/app/Http/Livewire/Boarding/Index.php
@@ -52,6 +52,12 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
$this->remoteServerHost = 'coolify-testing-host';
}
}
+ public function welcome() {
+ if (is_cloud()) {
+ return $this->setServerType('remote');
+ }
+ $this->currentState = 'select-server-type';
+ }
public function restartBoarding()
{
if ($this->createdServer) {
diff --git a/resources/views/livewire/boarding/index.blade.php b/resources/views/livewire/boarding/index.blade.php
index a62b0c7054..430bc48fbf 100644
--- a/resources/views/livewire/boarding/index.blade.php
+++ b/resources/views/livewire/boarding/index.blade.php
@@ -5,7 +5,7 @@
<h1 class="text-5xl font-bold">Welcome to Coolify</h1>
<p class="py-6 text-xl text-center">Let me help you to set the basics.</p>
<div class="flex justify-center ">
- <x-forms.button class="justify-center box" wire:click="$set('currentState', 'select-server-type')">Get Started
+ <x-forms.button class="justify-center box" wire:click="welcome">Get Started
</x-forms.button>
</div>
@endif