Deployment mode
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
| Mode | How changes reach the site | Roll back |
|---|---|---|
| Manual uploads | Files you change over SFTP or in the terminal are live at once, in htdocs. | Nothing to roll back. |
| Deploys from Git | Deploy, 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
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.
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
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.
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
Switches the site between deploying from git (git) and by upload (manual).
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"
}'Your assistant calls corestack_deployments_mode_set.
{
"name": "corestack_deployments_mode_set",
"arguments": {
"site_id": 4211,
"mode": "manual"
}
}