Real people, 24/7(800) 395-7779

How to Use Git to Deploy Your Website in Plesk Print

  • plesk, git
  • 0

Plesk includes a Git extension that can pull your code from a remote repository (such as GitHub, GitLab or Bitbucket), or accept pushes from a repository on your own computer, and then deploy the files to your website.

Your Plesk login details are in the welcome email we sent when you signed up. You can view it again in your billing account under Email History.

Step-by-Step Guide:

  1. Open Git for your domain:

    • Log in to Plesk and click Websites & Domains.
    • Find your domain and click Git (on the Dashboard tab). You can also type "Git" in the search box at the top of Plesk.

    Git icon in Plesk

  2. Choose where the code comes from:

    • Remote Git hosting (GitHub, Bitbucket, etc.): enter the repository URL. For a private repository, use the SSH URL and add the SSH public key that Plesk shows to your Git host as a deploy key.
    • Local repository on your workstation: Plesk creates an empty repository that you push to from your computer.

    Choose repository type

  3. Choose the deployment mode:

    • Automatic deploys every time new commits arrive.
    • Manual deploys only when you click Deploy.
    • No deployment keeps the repository without copying files to the site.

    Deployment mode

  4. Choose the deployment folder:

    • By default files are deployed to httpdocs (your website root). Change it if your site lives in another folder.

    Deployment path

  5. Save:

    • Click Create (or OK). Plesk clones the repository and, in automatic mode, deploys it.

Additional Information:

  • Webhooks: For automatic deployment from GitHub or Bitbucket, copy the Webhook URL from the repository settings in Plesk into your Git host so Plesk is notified of new pushes.
  • Compiled ASP.NET apps: Git copies files exactly as they are in the repository. If your project must be built first (for example an ASP.NET Core app), publish it with Visual Studio or dotnet publish and upload the published output instead.
  • Keep secrets out of Git: Do not commit passwords or connection strings to public repositories.

Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.


Was this answer helpful?

« Back