Skip to content

Deployments

This page is generated from package source documentation in the Capell packages repository and the checked-in manifest. Source documentation is not distribution status. Before running a Composer command, verify that the exact package and compatible 1.x release are available through public Packagist or the authenticated marketplace account.

FieldValue
Composer packagecapell-app/deployments
Package slugdeployments
Product groupCapell Operations
Tierpaid
Bundleoperations
Runtime contextsadmin
Capell version^1.0
Catalogue roleextension
Release channelBeta
Docs sourcepackages/deployments/docs
Manifestcapell.json

Install a package from the Marketplace and the change turns up in your Git repository. That’s the place on GitHub, GitLab or Bitbucket where your developer keeps the site’s code.

Your developer first registers an OAuth app with your Git host, and an admin can then give Capell write access to the repository. The installing admin needs access to every site and the Deployment Repository permission. Your own build still installs packages and updates the live site, which Deployments does not do. Connect only one repository, because a second turns automatic publishing off and shows a warning. GitHub is asked for its broad repo permission, and self-hosted Git isn’t supported.

Only the Marketplace install and update screens start a change. It writes the package and its version into your repository’s package list, the file naming what your site needs. Every new install is written. An update is written only when the package comes with a repository address. When you connect, you pick a direct commit or a pull request. For GitHub and GitLab, auto-merge asks to merge once checks pass. Bitbucket pull requests need manual merging.

The Deployment Repository page lists your last five publishes. Each shows its package, its check status and either the commit’s short code or a link to its pull request.

  • Price and availability: Check current availability and price on the Capell Marketplace listing.
  • Licence: Check the licence terms on the Capell Marketplace listing.
  • Requires: PHP ^8.4, capell-app/admin ^1.0.78, capell-app/core ^1.0.79, capell-app/marketplace ^1.0.79, laravel/framework ^12.61.1|^13.12.0, lorisleiva/laravel-actions ^2.8, spatie/laravel-data ^4.5, spatie/laravel-package-tools ^1.14.1.
  • Install: composer require capell-app/deployments.
  1. Install the package: composer require capell-app/deployments.
  2. Open the package admin surface at /admin/deployments/deployment-connection and confirm Deployments is available.

Provider adapters, OAuth state Actions, and typed publication data keep repository-specific behaviour behind a common contract.

  • Configuration files: config/capell-deployments.php.
  • Install the required Capell packages at the versions in composer.json: capell-app/admin ^1.0.78, capell-app/core ^1.0.79, capell-app/marketplace ^1.0.79.
  • Run migrations before opening package resources or public routes.
  • Review middleware, throttling, signatures, and public-output safety in routes/oauth.php before exposing routes.
  • Keep the host Laravel scheduler running so package-registered schedules can execute: capell:deployments:sync-marketplace-publications (everyFiveMinutes; package registered).

Deployment connection page with a connected repository and recent publicationsDeployment connection page with a connected repository and recent publications

Deployment connection page with a repository connectedDeployment connection page with a repository connected

  • Deployment connection page with a connected repository and recent publications (admin).
  • Deployment connection page with a repository connected (admin).
  • Deployment publication history (admin).
  • Deployment connection dashboard widget (admin).
  • Deployment connection page with a connected repository, recent publications, and admin sidebar menu open (admin).
  • Required packages: capell-app/admin, capell-app/core, capell-app/marketplace.
  • Admin navigation: declares admin-page: DeploymentsAdminPageContribution; each Filament page or resource controls its own navigation visibility.
  • Admin/editor extensions: dashboard-widget: DeploymentsDashboardFilamentWidgetContribution.
  • Permissions: View:DeploymentConnectionPage, Manage:DeploymentConnectionPage.
  • Public routes: loads routes/oauth.php; registers DeploymentsRoutesContribution.
  • Database changes: package migrations are declared.
  • Config: config/capell-deployments.php.
  • Settings: no package settings declared.
  • Queues or schedules: scheduled commands capell:deployments:sync-marketplace-publications (everyFiveMinutes; package registered); queue jobs RefreshDeploymentPublicationStatusJob.
  • Cache tags: none declared.
  • Commands: console command classes detected: SeedDeploymentsScreenshotFixtureCommand, SyncMarketplaceAwaitedPublicationsCommand.
SymptomLikely causeCheckFix
Package surface is missing after installProvider or manifest is not loadedConfirm capell.json, package composer.json, and provider registrationReinstall the package, refresh Composer autoload, and clear host caches
Admin screen or command fails on missing tablePackage migrations have not runCheck the tables listed in Data ModelRun host migrations and rerun the focused package test
Route returns unexpected outputRoute cache, middleware, or signed URL setup does not match the package route fileCheck the route files listed in Technical ShapeClear route cache and verify middleware before exposing public routes
Background work does not runQueue worker or declared schedule is not activeCheck the jobs and scheduled commands listed in Technical ShapeStart the queue worker or host scheduler, then run the focused command or package test

Read CHANGELOG.md before upgrading.

Unreleased: Upgrade note: GitProviderContract changed

Section titled “Unreleased: Upgrade note: GitProviderContract changed”

Custom Git providers must be updated before upgrading, because PHP refuses to load an implementation whose signatures no longer match:

  • getFile() takes an optional ?string $ref = null (a branch name or commit SHA; the default branch when null).
  • commitFiles() takes an optional ?string $expectedHeadSha = null. When given, the provider must refuse the commit with DeploymentBranchMovedException if the branch has moved past that SHA.
  • findOpenPullRequestForBranch() must return an open pull request from the head branch whatever its base branch.
  • RepoFile has an optional lastCommitId, which GitLab uses to refuse a stale update.