I have a server with bitbucket server installed (a server of my own), we already created a repository with the application, however, now we need that the changes that occur in the repository are reflected in the application automatically. In another project we had git and through a post-receive hook an rsync of the repo was made to the application.
For bitbucket I saw in the documentation that it is necessary to write the hook itself with java, but it is not clear to me, where the hook is placed, as I invoke it, as I indicate which repository I want and to which folder they are going to copy the changes?
This link I found: link
Thank you very much for all your help. Greetings.