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 Patricio7c884797d101
diff --git a/app/Actions/CoolifyTask/RunRemoteProcess.php b/app/Actions/CoolifyTask/RunRemoteProcess.phpindex 979144b010..877e95170a 100644--- a/app/Actions/CoolifyTask/RunRemoteProcess.php+++ b/app/Actions/CoolifyTask/RunRemoteProcess.php@@ -36,7 +36,7 @@ class RunRemoteProcesspublic function __construct(Activity $activity, bool $hideFromOutput = false, bool $isFinished = false, bool $ignoreErrors = false){- if ($activity->getExtraProperty('type') !== ActivityTypes::INSTANT->value && $activity->getExtraProperty('type') !== ActivityTypes::DEPLOYMENT->value) {+ if ($activity->getExtraProperty('type') !== ActivityTypes::INLINE->value && $activity->getExtraProperty('type') !== ActivityTypes::DEPLOYMENT->value) {throw new \RuntimeException('Incompatible Activity to run a remote command.');}diff --git a/app/Enums/ActivityTypes.php b/app/Enums/ActivityTypes.phpindex fac79267d7..47fec94244 100644--- a/app/Enums/ActivityTypes.php+++ b/app/Enums/ActivityTypes.php@@ -4,6 +4,6 @@ namespace App\Enums;enum ActivityTypes: string{- case INSTANT = 'instant';+ case INLINE = 'inline';case DEPLOYMENT = 'deployment';}diff --git a/app/Http/Livewire/ForceUpgrade.php b/app/Http/Livewire/ForceUpgrade.phpindex 7064170146..bec3ee0f86 100644--- a/app/Http/Livewire/ForceUpgrade.php+++ b/app/Http/Livewire/ForceUpgrade.php@@ -21,7 +21,7 @@ class ForceUpgrade extends Component]);remoteProcess(["sleep 10"- ], $server, ActivityTypes::INSTANT->value);+ ], $server, ActivityTypes::INLINE->value);$this->emit('updateInitiated');} else {$latestVersion = getLatestVersionOfCoolify();@@ -44,7 +44,7 @@ class ForceUpgrade extends ComponentremoteProcess(["bash /data/coolify/source/upgrade.sh $latestVersion"- ], $server, ActivityTypes::INSTANT->value);+ ], $server, ActivityTypes::INLINE->value);$this->emit('updateInitiated');}diff --git a/app/Http/Livewire/RunCommand.php b/app/Http/Livewire/RunCommand.phpindex 1e3f78f15c..41002ca17a 100755--- a/app/Http/Livewire/RunCommand.php+++ b/app/Http/Livewire/RunCommand.php@@ -32,19 +32,19 @@ class RunCommand extends Componentpublic function runCommand(){$this->isKeepAliveOn = true;- $this->activity = remoteProcess([$this->command], Server::where('uuid', $this->server)->first(), ActivityTypes::INSTANT->value);+ $this->activity = remoteProcess([$this->command], Server::where('uuid', $this->server)->first(), ActivityTypes::INLINE->value);}public function runSleepingBeauty(){$this->isKeepAliveOn = true;- $this->activity = remoteProcess(['x=1; while [ $x -le 40 ]; do sleep 0.1 && echo "Welcome $x times" $(( x++ )); done'], Server::where('uuid', $this->server)->first(), ActivityTypes::INSTANT->value);+ $this->activity = remoteProcess(['x=1; while [ $x -le 40 ]; do sleep 0.1 && echo "Welcome $x times" $(( x++ )); done'], Server::where('uuid', $this->server)->first(), ActivityTypes::INLINE->value);}public function runDummyProjectBuild(){$this->isKeepAliveOn = true;- $this->activity = remoteProcess([' cd projects/dummy-project', 'docker-compose build --no-cache'], Server::where('uuid', $this->server)->first(), ActivityTypes::INSTANT->value);+ $this->activity = remoteProcess([' cd projects/dummy-project', 'docker-compose build --no-cache'], Server::where('uuid', $this->server)->first(), ActivityTypes::INLINE->value);}public function polling()