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
Merge remote-tracking branch 'origin/next' into openid-auth-support
Andras Bacsaic7c239aa18c5
diff --cc app/Providers/AppServiceProvider.phpindex 9858289bea,2d0094f337..876ea7d982--- a/app/Providers/AppServiceProvider.php+++ b/app/Providers/AppServiceProvider.php@@@ -13,8 -10,8 +13,9 @@@ use Illuminate\Support\Facades\Httpuse Illuminate\Support\ServiceProvider;use Illuminate\Validation\Rules\Password;use Laravel\Sanctum\Sanctum;+use Laravel\Socialite\Contracts\Factory as SocialiteFactory;use Laravel\Telescope\TelescopeServiceProvider;+ use Stripe\StripeClient;class AppServiceProvider extends ServiceProvider{diff --cc database/migrations/2026_05_29_000000_encrypt_application_deployment_configuration_columns.phpindex 1a620c78eb,63bd39f6c2..19c4445b26--- a/database/migrations/2026_05_29_000000_encrypt_application_deployment_configuration_columns.php+++ b/database/migrations/2026_05_29_000000_encrypt_application_deployment_configuration_columns.php@@@ -11,7 -11,8 +11,8 @@@ return new class extends Migratio*/public function up(): void{- if (DB::connection()->getDriverName() === 'sqlite') {- // SQLite (testing) uses type affinity, so json columns already accept text++ // SQLite (testing) uses type affinity, so json columns already accept text.+ if (DB::connection()->getDriverName() !== 'pgsql') {return;}diff --cc tests/Feature/ProcessGithubPullRequestWebhookTest.phpindex 0000000000,6e0e9241e7..ce8e8c5badmode 000000,100644..100644--- a/tests/Feature/ProcessGithubPullRequestWebhookTest.php+++ b/tests/Feature/ProcessGithubPullRequestWebhookTest.php@@@ -1,0 -1,72 +1,60 @@@+ <?php++ use App\Actions\Application\CleanupPreviewDeployment;+ use App\Jobs\ProcessGithubPullRequestWebhook;+ use App\Models\Application;+ use App\Models\ApplicationPreview;+ use App\Models\Environment;+ use App\Models\InstanceSettings;+ use App\Models\Project;+ use App\Models\Server;+ use App\Models\StandaloneDocker;+ use App\Models\Team;+ use Illuminate\Foundation\Testing\RefreshDatabase;++ uses(RefreshDatabase::class);++ beforeEach(function () {+ InstanceSettings::unguarded(fn () => InstanceSettings::firstOrCreate(['id' => 0]));++ $this->team = Team::factory()->create();+ $this->server = Server::factory()->create(['team_id' => $this->team->id]);+ $this->destination = StandaloneDocker::where('server_id', $this->server->id)->first();+ $this->project = Project::factory()->create(['team_id' => $this->team->id]);+ $this->environment = Environment::factory()->create(['project_id' => $this->project->id]);++ $this->application = Application::factory()->create([+ 'environment_id' => $this->environment->id,+ 'destination_id' => $this->destination->id,+ 'destination_type' => $this->destination->getMorphClass(),+ ]);+ });++ it('cleans up a closed pull request preview when pull request comment cleanup fails', function () {+ $preview = ApplicationPreview::create([+ 'application_id' => $this->application->id,+ 'pull_request_id' => 42,+ 'pull_request_html_url' => 'https://github.com/example/repo/pull/42',+ ]);++ CleanupPreviewDeployment::shouldRun()+ ->once()+ ->withArgs(fn (Application $application, int $pullRequestId, ApplicationPreview $applicationPreview): bool => $application->is($this->application)+ && $pullRequestId === 42+ && $applicationPreview->is($preview))+ ->andReturn([+ 'cancelled_deployments' => 0,+ 'killed_containers' => 0,+ 'status' => 'success',+ ]);+- $job = new class(- applicationId: $this->application->id,- githubAppId: null,- action: 'closed',- pullRequestId: 42,- pullRequestHtmlUrl: 'https://github.com/example/repo/pull/42',- pullRequestTitle: null,- beforeSha: null,- afterSha: null,- commitSha: 'HEAD',- authorAssociation: 'OWNER',- fullName: 'example/repo',- ) extends ProcessGithubPullRequestWebhook++ $job = new class(applicationId: $this->application->id, githubAppId: null, action: 'closed', pullRequestId: 42, pullRequestHtmlUrl: 'https://github.com/example/repo/pull/42', pullRequestTitle: null, beforeSha: null, afterSha: null, commitSha: 'HEAD', authorAssociation: 'OWNER', fullName: 'example/repo') extends ProcessGithubPullRequestWebhook+ {+ protected function dispatchPullRequestClosedUpdate(Application $application, ApplicationPreview $preview): void+ {+ throw new RuntimeException('GitHub comment cleanup failed.');+ }+ };++ $job->handle();+ });