AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Using git with plesk3/10/2024 ![]() Update Github webhook if this has changed. The first step to try this new feature offered by Plesk was to create a simple Docker container with the technologies to be used (ASP.NET Core 2.2 and Angular 7). Now your webhook under Git Repository Settings should look like this To correctly configure this, go to Tools & Settings –> Server Settings and enter in Full Hostname Plesk will recreate the container with the new settings. You can also change the configuration settings after the container has been created. The created container will be displayed in the containers’ list found at the top of the Docker catalog page. Any new commit in the same branch will trigger a deployment of your app in Plesk. In the right box mention the directory path inside the container. ![]() Step 6 Configure in your Git webservice (Github, Gitlab, Bitbucket, etc) the webhook. In other words, you can use Git as a transport for initial publishing and. Step 4 Select Automatic deployment in Select deploy mode. You can manage Git repositories and automatically deploy web sites from such repositories to a target public directory. Your Plesk account must be accessible on and should be secured using SSL. Plesk allows you to integrate with Git the most popular source code management system used by many web developers. The common cause of delivery fail is a misconfigured server. This means that all changes pushed to the Git repository will be automatically deployed to the production site. By default, the Automatic deployment is used. In the Your Website section, specify the following: The deployment mode. You can also add addition post deployment commands in Plesk under Repository Settings by checking Enable additional deploy actions and entering commands, one per line. By default, the name of the domain is used with the. You can also create multiple deployments for different branches That’s it! Now, every time you push to master/main branch, your application will be updated. Open the webhook to make sure that delivery was successful.Copy the Webhook URL and add to your Github repo under Settings -> Webhooks.Copy the SSH public key and add it to your Github repo under Settings -> Deploy Keys.For example, if you are deploying a Laravel application, your document root is /httpdocs/public but deployment will be on /httpdocs/ directory This will have the document root selected by default which might be different from your deployment directory. Select the root directory for your repo.Under “Your Website”, select whether to automatically deploy or otherwise.
0 Comments
Read More
Leave a Reply. |