Syncing The Repo To SiteFactory
Log into SiteFactory. Find your site and click on the little toggle next to login and choose the option for "Manage theme repository".
Click the button to "Connect Site Repository". It is going to ask for a Git URL and a Branch or Tag.
The Git URL can usually be found by finding the clone link that will look something like this, git clone git@bitbucket.org:ietwebdev/my-custom-subtheme.git
and you can remove the git clone
part leaving your with just the Git URL git@bitbucket.org:ietwebdev/my-custom-subtheme.git
.
In the example creation of a repo above I made the repository a Private repo. This will require that you click the link to "Show SSH public key", copy the SSH Key text in the text window, and paste it into the SSH Keys area usually found in the privacy settings of the repository account used to create the repo. In BitBucket you need to go to Personal Settings -> Privacy -> SSH Keys and click the button "Add key". Name it, paste the key, and save it.
The Branch name is main
unless you used some other branch name. Once you connect your repository the branches will actually appear in a drop down that you can choose from.
Click "Save" and you should get a message that the repo has been connected successfully.
Trouble Shooting: If you get rejected, be sure that you added your SSH keys to BitBucket or GitHub and that you have the right git url.
Enabling Your Theme on SiteFarm
Now that you have sync'd your theme repo to SiteFactory, you may need to clear caches and wait a few minutes for the theme to appear on the site.
Login to your SiteFarm site on SiteFactory /login
, and go to /admin/appearence
and click "Install and set as default". You should now be using your custom subtheme on your SiteFactory SiteFarm site.