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
Andras Bacsaibfe55c12a79b
diff --git a/app/Console/Commands/Init.php b/app/Console/Commands/Init.phpindex 45ac000c94..32ff31827d 100644--- a/app/Console/Commands/Init.php+++ b/app/Console/Commands/Init.php@@ -2,33 +2,28 @@namespace App\Console\Commands;+use App\Enums\ApplicationDeploymentStatus;use App\Models\ApplicationDeploymentQueue;use Illuminate\Console\Command;class Init extends Command{- /**- * The name and signature of the console command.- *- * @var string- */protected $signature = 'app:init';-- /**- * The console command description.- *- * @var string- */protected $description = 'Cleanup instance related stuffs';-- /**- * Execute the console command.- */public function handle(){+ $this->cleanup_in_progress_application_deployments();+ }+ private function cleanup_in_progress_application_deployments()+ {+ // Cleanup any failed deployments+try {$halted_deployments = ApplicationDeploymentQueue::where('status', '==', 'in_progress')->get();- ray($halted_deployments);+ foreach ($halted_deployments as $deployment) {+ $deployment->status = ApplicationDeploymentStatus::FAILED->value;+ $deployment->save();+ }} catch (\Exception $e) {echo "Error: {$e->getMessage()}\n";}