Automatic deploy with Github webhook error #142
-
Hi team, I set up a Github webhook on release create event, however the dokploy api responds with a 301 and does not deploy the application. Here is the response and error body: Headers
Body
My question is which branches do not match? I have my config on dokploy set to deploy from the main branch (root path) from which I also create releases. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Simple because the branch you selected in your application will only trigger the webhook there, when you make a push for example from another branch it will not trigger only when you make changes specifically to the branch you selected in the dokploy configuration. in short, if you selected the main branch in dokploy, only when you push that branch the webhook will trigger, otherwise you will get that. |
Beta Was this translation helpful? Give feedback.
No, we only trigger the deployment when you push on a branch that you've selected in dokploy
https://github.com/Dokploy/dokploy/blob/canary/pages/api/deploy/%5BrefreshToken%5D.ts#L56