Web Hosting - GIT Deploy via Plesk

To make deploying your website even easier, Plesk now has built-in integration with Git. This is available on both Windows/IIS/ASP and our LAMP platforms

When working with Git and Plesk first you need to decide if you want to use a local repository from your workstation or a remote repository hosted by a 3rd party. On campus we use GitLab and we would suggest you use the GitLab option for ease of use.

Follow this guide to configure Git with Plesk and your website here

Currently, you will need to click the “Pull Updates” button to sync the latest commits to the repository. If this becomes tedious, you can also create a web hook to GitLab to auto deploy your repository updates to your site without clicking that button.

  1. From your repository main page on GitLab click on “Settings” -> “Integrations”
  2. Ensure that “Push events”  & “Enable SSL verification” are checked.
  3. You need to retrieve your web hook URL from Plesk. See the above documentation on the location of the web hook URL.
  4. Finally, paste this url in the URL field.
  5. If you do not know what to enter for “Secret Token” you can skip that field.
  6. Click “Add web hook” to complete
Now, when you push changes to your repository the file system of your site will be updated automatically

Please contact webhosting@doit.wisc.edu if you have any questions.

Keywords:git, lamp, windows, IIS, repositories, version, control, push, pull, branch, deploy   Doc ID:56926
Owner:Jake S.Group:DoIT Web Hosting
Created:2015-09-30 11:22 CDTUpdated:2021-03-05 12:46 CDT
Sites:DoIT Help Desk, DoIT Web Hosting
Feedback:  0   1