Articles on: Deployments

Connect to Site

Once you have added deployment to your InstaWP account, you can connect Git Repository (Deployment) to an existing site. So, every new push to the branch will update the code inside the site.

In this documentation, we will explore the steps to connect a Git repository to a site.

Let’s get started 🚀



Select the repository you have added to your account.
So that, every new push to the selected Git branch will update the code inside the site.



Go to the selected GitHub repository’ Webhook setting to add a webhook and paste the Payload URL (where you'd like to receive payloads) & Content type (data format to receive the webhook payload in) that will deploy repository code automatically to the website.



Go to the InstaWP Git deployment page, save to update the repository list to the site on every push.



Now, you can make some changes to the plugin with the code editor.



Following that, you can type the git commit -a -m 'updated test' command in your terminal (Command Prompt).
Hit enter. Then, you need to push the Git, by typing the git push command and hit enter.

This will call the webhook and update the changes you made to the website. You can see that the plugin has been added.

Note: The user needs to activate the plugin the first time following any changes made to the website. After that the user no need to activate it again.



💡 Did you know - You can make changes to the staging site and push that changes to your live (production) site from your WP admin panel. Learn about 2 Way sync.

Updated on: 04/07/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!