I have two websites on plesk, let's call them
main.com and test.main.com
I want to create one central git repo hosted on my server.
Then I want split it into two branches, main and dev.
A folder of main.com should always pull the changes and master and on test.main.com a folder should pull changes from dev. enter image description here I managed to get one half of it working, but don't know how to get the second half working for the same repo.
The problem is: In plesk it seems you can only create a git repo for one website, not for two. I thought this is no problem, but I get errors when trying to connect to a git repo from another website.

Does someone know a good solution how to have just one git and deploy two different branches to two different folders automatically?

  • Do you have command line access to your sites? If it were me I would just do the git stuff on the command line. I'd use a cron job if I needed to keep it up to date automatically on a schedule. – Stephen Ostermiller Sep 10 '18 at 9:40
  • @StephenOstermiller no, I don't have command line access – Cold_Class Sep 11 '18 at 8:40
  • having this issue too. did you check with plesk support? – squarecandy Oct 24 at 20:10
  • @squarecandy no, I didn't – Cold_Class Oct 25 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.