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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
wip
Joao Patricio3ba4a5cfb52e
diff --git a/app/Actions/Proxy/CheckProxySettingsInSync.php b/app/Actions/Proxy/CheckProxySettingsInSync.phpindex 98225d4146..0a63a0735d 100644--- a/app/Actions/Proxy/CheckProxySettingsInSync.php+++ b/app/Actions/Proxy/CheckProxySettingsInSync.php@@ -17,8 +17,17 @@ class CheckProxySettingsInSyncProxyTypes::TRAEFIK_V2->value => 'proxy',};- return instantRemoteProcess([+ $container_name = 'coolify-proxy';++ $output = instantRemoteProcess(['if [ -d "projects/'.$folder_name.'" ]; then echo "true"; else echo "false"; fi',+ <<<EOT+ [[ "$(docker inspect -f '{{.State.Running}}' $container_name 2>/dev/null)" == "true" ]] && echo "true" || echo "false"+ EOT,], $server);++ return collect(+ explode(PHP_EOL, $output)+ )->every(fn($output) => $output === 'true');}}diff --git a/app/Http/Livewire/Server/Proxy.php b/app/Http/Livewire/Server/Proxy.phpindex 40fe2e4ccb..16e92cf483 100644--- a/app/Http/Livewire/Server/Proxy.php+++ b/app/Http/Livewire/Server/Proxy.php@@ -33,9 +33,9 @@ class Proxy extends Componentpublic function checkProxySettingsInSync(){- $status = resolve(CheckProxySettingsInSync::class)($this->server);+ $this->is_proxy_settings_in_sync = resolve(CheckProxySettingsInSync::class)($this->server);+$this->is_check_proxy_complete = true;- $this->is_proxy_settings_in_sync = $status === 'true';}public function render()