Guides

Deployments

How to connect source control for site deployments

A practical guide to connecting repositories, reviewing deployment scripts, and keeping release history visible for client sites.

Updated Jun 22, 2026 2 min read

Why source control belongs in the deployment workflow

Git deployments give agency teams a cleaner record of what changed and when. Instead of copying files manually, the site can deploy from a known repository, branch, and command sequence. That makes launches easier to repeat and easier to debug when something fails.

ForgedBase connects source control to the site, not just the server, so repository state, deployment history, domain readiness, and site operations stay together.

Prerequisites

  • A GitHub or GitLab account connected to ForgedBase.
  • A repository containing the site or application.
  • A branch strategy for production releases.
  • Deployment commands for install, build, cache, migrations, or activation steps.
  • A rollback or recovery expectation if a release fails.

Step-by-step workflow

  1. Connect the source-control provider.
  2. Sync repositories in ForgedBase.
  3. Create or open the site that should receive deployments.
  4. Attach the repository and production branch.
  5. Review the default deployment command.
  6. Add project-specific build, cache, migration, or restart commands.
  7. Run the first deployment outside peak traffic.
  8. Review deployment output and fix failed steps before repeating.
  9. Keep deployment history attached to the site.
  10. Revisit the deployment script when project structure changes.

Where ForgedBase helps

ForgedBase keeps source-control connection, repository selection, deployment command, domain state, SSL state, and deployment history in one place. That is especially helpful for teams where one person writes code, another manages DNS, and another handles support after launch.

The deployment surface becomes part of the site record instead of a private note or one-off script.

Common issues to check

  • The wrong GitHub or GitLab account is connected in the browser.
  • The repository sync is stale.
  • The production branch is not the branch the team expects.
  • Deployment commands assume local-only paths or missing tools.
  • Migrations run without a backup plan.
  • Failed deployments are retried without reading the output.

Related ForgedBase docs

Deployment checklist

  • Source provider connected.
  • Repository synced.
  • Production branch selected.
  • Deployment command reviewed.
  • Environment values present.
  • Backup plan understood.
  • First deployment output checked.
  • Release ownership documented.

FAQ

Common questions

Can the same workspace connect more than one source-control provider?

Yes. ForgedBase separates provider connections, repositories, sites, and deployment settings so teams can manage different client workflows from the same workspace.

Should deployment scripts be changed during a live release?

Avoid changing scripts during a live release unless you are deliberately fixing a blocked deployment. Review commands before the first production deploy.

Related guides

Deployments

How to deploy a Laravel site on a cloud server

A practical agency workflow for moving a Laravel application from repository to an HTTPS-ready cloud server.

Read guide

Laravel

How to run Laravel queues and scheduled jobs on a server

A production-readiness checklist for Laravel background work after the site is deployed.

Read guide

Security

How to manage SSH keys for client infrastructure

Keep infrastructure access understandable when multiple people need safe access to servers and deployments.

Read guide