I have set up a gitlab on my server running with Plesk which I use to manage my clients accounts.
Some of my clients have special development requests so I thought GitLab would be a great way to resolve a few issues.
However. What I need to do is:
When I create a git repo for a clients project I add a folder named hooks in the git . directory. and inside that I would like to have a file called site.conf
In this Im thinking of something like this: stage_dir=/var/www/vhosts//subdomains/stage..no stage_production=/var/www/vhosts//httpdocs/
In the project I would set up a webhooks for http://localhost:7900 This would be the same for every repo I create, with the site.conf individual for every project. So when I push to stage, all the stage files get copied / rsynced into the stage_dir variable, and so forth for the production.
I know there are similar solutions out there, but I have been unable to find any examples of them. My ruby skills arent good enough to do this from scratch, so I need something to look at to make this work. Can anyone help me out if you know of anything like this?