Wednesday, July 22, 2020

Using Site Ground Git to deploy your Wordpress Site

Site Ground Git gives us an option to have some sites such as staging or test  to make our developer life easier.


In the screenshot above, we have 2 sites for testing before roll-out to production.

In order to push code to testing sites, you need to register your SSH key first,


After created a SSH key, simply upload the public key via Manage SSH Keys,  Remember to authorized the key.



In case you already has a SSH key and want to use a new SSH key, you can specify the new SSH key per folder which contains your source code


When everything is ready, add the Site Ground repository as a remote track, and push the change to master.



That is it, happy coding.

Here is the git setup guide from SiteGround: https://www.siteground.com/tutorials/sg-git/

No comments:

Post a Comment