Git deployment
The Deploy tab lets a customer deploy a site from Git without opening the control panel: connect a repository at GitHub, GitLab, Bitbucket or any Git host, or host one on the server, and the branch lands in a folder of the site on every push or when they click. It runs on Plesk’s own Git extension, so what the customer sets up here is the same repository Plesk shows.
1. What it needs
Section titled “1. What it needs”| Requirement | Where |
|---|---|
| Plesk’s Git extension on the server | Plesk → Extensions. Without it the tab says Git deployment isn’t available on the server. |
| Plan flag Git | Plans & Products, the plan’s feature flags (see Set the feature flags). A plan without it shows no Deploy tab, and a request posted anyway is refused with Git deployment is not included in your plan. |
| The file service, 1.8.0 or later | Plesk’s REST command gateway runs only its core utilities and refuses extension commands, so the module runs the Git extension’s command line through the file service. A server without one shows the tab but can’t list or change repositories. |
2. What customers see
Section titled “2. What customers see”The tab opens with a short How it works: you push to your repository; the server fetches the branch, by webhook or when you click; the files land in your folder and your deploy actions run.
Each repository has a card:
- Its source — the remote URL, or Hosted here with the clone address to push to — the active branch, the folder it deploys to and its deployment mode.
- The last commit the server fetched (author, date and message), and when it was last deployed.
- Deploy now, Pull changes (fetch without deploying) and Remove repository.
- Three panels: the Deployment log of the last run, the Deploy actions — shell commands run after the files land, one per line, such as
composer install --no-devornpm run build— and Repository settings (branch, folder, mode).
Connect a repository
Section titled “Connect a repository”- A repository at your provider. The customer enters the Repository URL, the Branch (default
masterormainas the provider uses), the Deploy to folder of the site and the deployment mode. For a private repository, the card then shows the server’s deploy key to add at the provider (GitHub and GitLab call it a deploy key), after which Pull changes fetches it. For the automatic mode the card shows the Webhook address to add at the provider, which Plesk listens on for each push. - Host a repository here. A bare repository on the server, named by the customer; its clone address appears on the card, the customer pushes to it over SSH as the subscription’s system user, then clicks Deploy now (or sets the automatic mode).
Deployment modes
Section titled “Deployment modes”| Mode | Behaviour |
|---|---|
| Automatic on push | Plesk deploys the branch into the folder each time it fetches a push. |
| Manual | The branch is fetched on push, deployed only when the customer clicks Deploy now. |
| Off (pull only) | Nothing is deployed; Pull changes keeps the server’s copy current for a customer who deploys another way. |
Plesk runs the deploy actions itself, as the subscription’s system user; the plan’s SSH access flag has no bearing on them.
3. Removing a repository
Section titled “3. Removing a repository”Remove repository asks the customer to confirm and deletes Plesk’s repository record and the server’s copy of it. The deployed files stay in the folder; the folder is the customer’s to clean up.
4. What you see as the operator
Section titled “4. What you see as the operator”Repository changes are recorded in ImpulseCore’s audit log for the module (ImpulsePlesk → Diagnostics → Activity while recent) as deploy.create, deploy.deploy, deploy.pull, deploy.settings, deploy.actions and deploy.remove, with the service, the repository name and whether Plesk accepted it. A Git command the server refused is logged with the command’s own words, and the customer sees a short generic message.