CorefinityCorefinityDocs
Open the Control PanelControl Panel
Code and deployments · 1 of 10

See whether a site takes manual uploads or deploys from Git, and switch it back to manual uploads.

On this page

Before you start

  • You can open the site in Managed Websites. Anyone who can open a site can see its deployment mode.
  • To switch the mode you are an owner, or your role has Manage Deployment Source.
  • To move a site to Git, follow Connect a repository.

What each mode does

ModeHow changes reach the siteRoll back
Manual uploadsFiles you change over SFTP or in the terminal are live at once, in htdocs.Nothing to roll back.
Deploys from GitDeploy, or a push to the branch, builds the repository into a new release in releases/. Uploads and configuration live in shared/, linked into every release.To the previous release.

On a site that deploys from Git, files changed over SFTP inside a release are overwritten by the next deployment. Put uploads in shared/, or commit the change.

See how a site deploys

  1. Open the site's deployments

    Go to Managed Websites, choose the site, then Deployments under Code & backups. The Deployment mode card describes the environment chosen in the site header.

  2. Open How it works

    Choose How it works. This site today lists the releases kept, the shared folders, the repository, the branch and whether Deploy on push is on.

The site's other environments keep their own branch and Deploy on push setting.

Switch back to manual uploads

  1. Open the card's menu

    On the Deployment mode card, open the … menu and choose Switch to manual uploads…. What switching to manual does shows the site's folders now and afterwards.

  2. Confirm the switch

    In the dialog, choose Switch to manual uploads… again, then Switch to manual uploads to confirm.

    The other releases are removed, so there is nothing to roll back to afterwards.

Deployment mode reads Manual uploads. The repository stays connected but unused, and the deployment history stays readable.

The site keeps serving while the current release is copied into htdocs. A Laravel site rebuilds once at the end, and visitors may see an error page until it finishes.

Automate this

Deployment mode

Switches the site between deploying from git (git) and by upload (manual).

PUT/api/corestack/sites/{site}/deployments/mode
curl -X PUT https://manage.corefinity.com/api/corestack/sites/1042/deployments/mode \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "git"
  }'
Was this helpful?
Open in ClaudeOpen in ChatGPT