Plesk Onyx for Linux
kb: how-to
ABT: Group B
Applicable to:
- Plesk Onyx for Linux
Question
It is needed to use webhook to sync files with remote repository.
It is needed to automatically deploy files from Git to local Plesk repository.
How can it be configured?
Answer
It is configured using webhook URL. The webhook URL is generated automatically for the repository in Plesk:
2. Go to Domains > example.com > Git and click "Repository Settings":
3. Specify this URL in the remote GitHub or Bitbucket repository settings and configure it to be triggered in case of a push to the repository:
Additional Information
Webhooks are used to configure remote repository to notify Plesk about certain events (e.g.: pushing files to the repository).
For details, refer to the documentation for managing webhooks in BitBucket or GitHub .
Comments
5 comments
I've set this up in GitHub but don't know where to get the "Secret"
Also, there are two options in the "Content Type":
Which of these Content types should be selected?
This is the error I keep getting: "We couldn’t deliver this payload: failed to connect"
I have tried using this webhook in conjunction with these instructions: "Use Webhooks for Automatic Pull"
I've tried HTTP and HTTPS and still keep getting that error.
Jordan Dayton Content type does not matter, you may set any. "Secret" just leave empty it is not required to push updates to Plesk.
Please make sure that connection to Plesk URL via port 8443 works from outside.
I'm having the same problem here, I've set up the system as described but can't get the webhook to work.
I've checked the hostname, set up & controlled the records. It looks as it should.
Still keep getting 404 error.
404 error.
If you are having this problem and your site is accessing ok, I say your URL is solving 100% and the main domain OR subdomain is accessible, try to change the beginning of the webhook created for your domain. For me exactly like this:
https://unruffled-heyrovsky.12-456-789-10.plesk.page:8443/......
TO THIS
https://your-website-or-subdomain-url:8443/......
-------------------------------------------
Se você esta tendo esse problema e o seu site esta acessando ok, digo sua URL esta resolvendo 100% e o domínio principal OU subdominio esta acessível, tente mudar o começo do webhook criado para o seu dominio. Pra min resolveu exatamente assim:
https://unruffled-heyrovsky.12-456-789-10.plesk.page:8443/......
PARA
https://your-website-or-subdomain-url:8443/......
Please sign in to leave a comment.