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,
If you do not have any SSH key, you can check out the guide here: https://docs.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote add deploy-sit ssh://xxx@xxxxxx.sgvps.net:18765/home/your_username/public_html/test.yoursite.com/ | |
git push deploy-sit your_local_branch:master -f |
No comments:
Post a Comment