Adding a Git repository
With Git you link a repository, for example from GitHub, GitLab or Bitbucket, to your hosting package. The control panel fetches the code and puts the files in the folder you choose.
Enter a domain name, such as yourdomain.nl.
This value doesn’t fit here. An example: whs1.
Web Hosting (DirectAdmin)
Also for Reseller Hosting.
- Log in to DirectAdmin via Single Sign-On from Mijn xYnta, or at
https://yourdomain.nl:2222. - Under Advanced Features, click Git.
- At the top right, click CREATE REPOSITORY.
- Under Name, enter a name for the repository.
- Under Remote, enter the address of the repository (the URL ending in
.git). Keyfile is only needed for a private repository. - Click CREATE REPOSITORY. DirectAdmin clones the repository to
domains/yourdomain.nl/under the name you chose. - In the list, click the name of the repository and then MODIFY.
- Under Deploy Branch, choose the branch, for example
mainormaster, and under Deploy Directory enter the folder the files should go to, for exampledomains/yourdomain.nl/public_html/app. Click SAVE. - Click DEPLOY. DirectAdmin puts the files in the folder and reports Deployment completed.
Later, FETCH fetches new changes from the repository, and DEPLOY puts them in the folder.
Note: a new folder that DirectAdmin creates when deploying gets the permissions 700. Visitors then get an error: set the permissions of that folder to 755 (see Resetting file permissions on your hosting package).
WordPress Hosting (Plesk)
- Log in to Plesk at
https://whs1.srvnl.nl:8443. You can find your server name in How can I find the server name of my hosting package? - On the Dashboard tab, under Dev Tools, click Git.
- Click Add Repository.
- At the top, choose Remote repository.
- Under Repository URL, enter the address of the repository. If the repository is protected with a username and password, enter them under Username and Password.
- Under Deployment settings, choose Automatic for Deployment mode.
- Under Deployment directory, enter the folder the files should go to.
- Click Create.
Plesk clones the repository and puts the files in the folder. Later, Pull now fetches new changes, and Deploy now puts them in the folder again.
Note: Deployment directory is set to /httpdocs by default, the folder of your website. Choose a folder of its own, unless the repository contains your whole website.

Video


Related articles
Thank you for your feedback.

